Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Gilles Ganault
June 24, 2010, 2:24 pm
rate this thread
To save RAM in an embedded appliance, I was wondering if I could use
the php-cgi process running as FastCGI to not only handle web requests
from Lighttpd, but also run regular CLI scripts?
That way, I wouldn't have to also launch the CLI version, and would
Are there differences between what the www and the CLI versions can
June 24, 2010, 3:16 pm
Re: [embedded] Using php-cgi to handle www + CLI scripts?
El 24/06/2010 16:24, Gilles Ganault escribió/wrote:
They are different environments and that can affect your scripts (or
not) depending on what they expect to find. For instance, this:
php foo.php --from=a --to=b | sort >> /var/log/foo.log
... translates badly to the web. But differences basically affect
security and syntax; functionality itself is pretty similar.
You can find a quick summary at
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com