Bytecode - PHP
This is a discussion on Bytecode - PHP ; Hi all
I came across some text that sais PHP compiles the script to bytecode priorto
running it.
Is this true, and is it possible to instead of .php source files, use those
bytecodes files in distribution?
With kind regards
...
-
Bytecode
Hi all
I came across some text that sais PHP compiles the script to bytecode priorto
running it.
Is this true, and is it possible to instead of .php source files, use those
bytecodes files in distribution?
With kind regards
Andy
--
Registered Linux User Number 379093
Now listening to Radio Stream
amaroK::the Coolest Media Player in the known Universe!
Cockroaches and socialites are the only things that can
stay up all night and eat anything.
Herb Caen
--
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s
+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
under the GPL2 and that are meant for use with a
php cli binary:
http://www.vlaamse-kern.com/sas/
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQBDMR726Hylol726jIRAhLpAJwL+MBqJNzFV6ijc47oOoon98TJNwCeKyCe
fgzdy6aQ2Y1fSPxW03SL7u8=
=h9Pm
-----END PGP SIGNATURE-----
-
Re: [PHP] Bytecode
Andy Pieters wrote:
> I came across some text that sais PHP compiles the script to bytecode prior to
> running it.
>
> Is this true, and is it possible to instead of .php source files, use those
> bytecodes files in distribution?
http://php.net/bcompiler
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/
-
Re: [PHP] Bytecode
> I came across some text that sais PHP compiles the script to bytecode prior to
> running it.
PHP compilies the source to OPCodes.
>
> Is this true, and is it possible to instead of .php source files, use those
> bytecodes files in distribution?
>
>
> With kind regards
>
>
>
> Andy
>
> --
> Registered Linux User Number 379093
> Now listening to Radio Stream
>
> amaroK::the Coolest Media Player in the known Universe!
>
>
> Cockroaches and socialites are the only things that can
> stay up all night and eat anything.
> Herb Caen
> --
> -- --BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GAT/O/>E$ d-(---)>+ s
+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
> L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
> PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
> e>++++$@ h++(*) r-->++ y--()>++++
> -- ---END GEEK CODE BLOCK------
> --
> Check out these few php utilities that I released
> under the GPL2 and that are meant for use with a
> php cli binary:
>
> http://www.vlaamse-kern.com/sas/
>
> --
>
>
>
-
Re: [PHP] Bytecode
On 9/21/05, Andy Pieters <mailings@vlaamse-kern.com> wrote:
> Hi all
>
> I came across some text that sais PHP compiles the script to bytecode prior to
> running it.
>
> Is this true, and is it possible to instead of .php source files, use those
> bytecodes files in distribution?
There are no "bytecode files". PHP simply creates an instruction line
(opcode array) of what it wants to do. Some projects such as Zend
Encoder(or did they change its name), bcompiler, ioncube encoder, or
MMCache, convert these opcodes into a format that can be written to
and read from a file. Check their websites for a better description.
>
>
> With kind regards
>
>
>
> Andy
>
> --
> Registered Linux User Number 379093
> Now listening to Radio Stream
>
> amaroK::the Coolest Media Player in the known Universe!
>
>
> Cockroaches and socialites are the only things that can
> stay up all night and eat anything.
> Herb Caen
> --
> -- --BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GAT/O/>E$ d-(---)>+ s
+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
> L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
> PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
> e>++++$@ h++(*) r-->++ y--()>++++
> -- ---END GEEK CODE BLOCK------
> --
> Check out these few php utilities that I released
> under the GPL2 and that are meant for use with a
> php cli binary:
>
> http://www.vlaamse-kern.com/sas/
>
> --
>
>
>
-
Re: [PHP] Bytecode
Andy Pieters wrote:
> I came across some text that sais PHP compiles the script to bytecode prior to
> running it.
>
> Is this true, and is it possible to instead of .php source files, use those
> bytecodes files in distribution?
It sounds like you're looking for APC:
http://php.net/apc
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/