Posted by BG Mahesh on 07/27/06 01:59
> >
> > When I run this script from the command line or the web it does show
> > SCRIPT_FILENAME [with the correct value]. But when the script runs from
> > cron it is NULL. Is this normal behavior?
> >
> > -- Mahesh
> > http://www.greynium.com/
> >
>
> Is the cron job calling the page through the web server? Or is it just
> executing the script?
>
> $_SERVER is filled in by the web server - and it won't exist if you
> don't access the page though the server (http://...).
>
>
hi
I think I found the problem. On the machine where things work I have
PHP-CLI and the other one that was giving me grief had PHP-CGI.
Where does one find rpms for PHP-5.0.4-CLI [OpenSuse]?
-- Mahesh
http://www.oneindia.in/
Navigation:
[Reply to this message]
|