Posted by Ahmed Saad on 07/12/05 20:14
hi all,
> On Tue, 2005-07-12 at 16:49 +0200, daro wrote:
> Also remember to set_time_limit(0) ;)
PHP ENTER CONFUSION
The *CLI* version of php has no max execution time by default (0)
- Where's the php CLI version in php4?
[PHP_HOME]/cli/php.exe and it reads a php.ini if it was in the SAME
directory or as specified using -c [DIRECTORY] (but apparently
ignoring the max_execution_time value even it was specified in
php.ini)
- Oh and what's the $PHP_HOME/php.exe in a typical php4 distribution?
it's the CGI executable (according to the accompanying READMEEEE)
- And what's the CLI one in php5?
[PHP_HOME]/php.exe and it reads php-cli.ini!! (note that this was the
CGI one in php4)
- Oh la la and where's CGI one in php5?
[PHP_HOME]/php-cgi.exe
Can i ini_set() the value of max_execution_time during runtime when
using the cli versions?
YES!!
I've done some personal experimentation to confirm all the above.
Tested with PHP/4.3.9 and PHP/5.0.2
-ahmed
Navigation:
[Reply to this message]
|