Is the there any way to compile a php script ?
I wrote some code and I want to make it a executable binary but by now I can't find the way![]()
Is the there any way to compile a php script ?
I wrote some code and I want to make it a executable binary but by now I can't find the way![]()
Flux Capacitor Penguin
A search on "php compiler" turned up something called Roadsend. It's GPL even. I learnt something today. Let us know how you go.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
PHP can't normally be compiled afaik. Is there a reason you want to do
this? Zend (the company that creates the PHP engine) I think may have
some ways to optimize code so it is faster but I'm not familiar with
them (haven't looked into it for a few years) but check out www.zend.com
for whatever they may have.
Good luck.
castord wrote:
> Is the there any way to compile a php script ?
> I wrote some code and I want to make it a executable binary but by now
> I can't find the way
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIx0IW3s42bA80+9kRAuaJAJ9BkBK3HqDeT+919lC0XWlLthGtdwCePNwU
+xn4h9nkwHSgngH5A+JqtRQ=
=15uE
-----END PGP SIGNATURE-----
Thank you!
I'll take a look right now.
Student Penguin

also you can use LAMP server to have php, apache and mysql!
it's in suse dvd and you can install it from install or remove software packages!
Explorer Penguin


AFAIK you can't convert PHP-Code to binary code. ZEND IMO only provides encryption / optimization tools but no true PHP to Binary compiler!
Don't ask me what my opinion is, you won't like it anyway.
Apparently you're right.
I did try with roadsend compiler but doesn't work for complex scripting using remote database access (db2 with ibm_db2 module).
I'm pretty disappointed, I'll find another way out.
uhm no php scripts is/are not compiled, its an interpreted language.
We are not discussing about the nature of php as a language.
We're trying to make binaries from php scripts, something like perlcc for perl.
Newcomer
You can use PHP with Command Line Interface.
PHP: Using PHP from the command line - Manual
Bookmarks