You are here: Re: include - CLI vs. HTTP « All PHP « IT news, forums, messages
Re: include - CLI vs. HTTP

Posted by ZeldorBlat on 02/17/06 17:16

Ridge Burner wrote:
> Does PHP handle included files differently for CLI and HTTP?
>
> I have a cron that triggers a script daily, this script has an include like
> so:
> include '../includes/myScript.php';
>
> When this script is run from Browser, it works fine, and the file is
> included.
> When the corn triggers it, the include is not executed.

What do you mean, "not executed" ? Do you get an error? A blank
screen? How do you know it didn't execute?

>
> I have changed the include to the full path instead of relative one, but
> will not know if this fixes it until tomorrow.
>
> Thanks for any input you can offer....
>
> -Ridge

That's a pretty good start. Why don't you try it tomorrow and see if
it works.

 

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

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