You are here: Re: Reading SCRIPT_FILENAME thru cron « PHP Programming Language « IT news, forums, messages
Re: Reading SCRIPT_FILENAME thru cron

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация