Web Hosting Talk







View Full Version : Php Compiler


NHosting
04-04-2001, 10:11 AM
Hi,
Do you know if there is a php compiler ?
I need to compile a php script to execute it via shell.

Thank you
NHosting

Ricky_1
04-04-2001, 02:13 PM
You can execute a text-only browser from the shell, I use Lynx to execute PHP scripts from the shell and with cron jobs.
Try this way:

TERM=xterm; export TERM; /usr/bin/lynx -source - "http://www.yourdomain.com/script.php"

Bye
Ricky

NHosting
04-05-2001, 10:41 AM
Thank you!

NHosting

Matt Lightner
04-07-2001, 12:59 AM
There is indeed a compiler available for PHP... It's called Zend Encoder.

http://zend.com/store/products/zend-encoder.php

Not cheap, however useful if you plan on selling PHP programs and don't want to worry about your code getting ripped off.

Best Regards,
Matt Lightner
mlightner@site5.com

NHosting
04-07-2001, 02:21 AM
I see, thank you.
Is it the only one encoder ? Isn't there anything else ? 2500$ is too high in my opinion.

NHosting

Matt Lightner
04-07-2001, 02:23 AM
The only one that I'm aware of... yes. I really think someone should (and will) make a GPL version of it. :)

Best Regards,
Matt Lightner
mlightner@site5.com

Travis
04-07-2001, 06:52 PM
One thing nobody has mentioned is that PHP can be compiled as a CGI. Once you do this, you can use the CGI binary to run scripts from the shell just like you would for Perl. In fact, you can even set the script executable and put a:

#! /path/to/php

..at the top and run it directly, like any Perl script.