Forums / Developer / argv notice ?! [runcronjobs.php]

argv notice ?! [runcronjobs.php]

Author Message

Selmah Maxim

Wednesday 11 June 2003 1:48:59 pm

Hi ..

What this notice mean :
Notice: Undefined variable: argv ..

I get this from runcronjobs.php .

Jan Borsodi

Wednesday 11 June 2003 1:51:28 pm

The script requires that PHP has cli built in, this means being able to read options from the command line. The script will still run without this support but you won't be able to choose siteaccess and add some other options.

We should probably add a check for argv existance before using it.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Friday 13 June 2003 8:06:13 am

Then How to know if the host has cli built PHP ?
Can I see it from phpinfo() ?

I`ll make 2 site siteaccess and the admin site access, then how this argv notice will effect the site ?