Reply to Some difficulty with file_exists

Your name:

Reply:


Posted by roger.moon2 on 04/25/07 19:32

So I wrote a script to run via crontab but when it tries to check
whether a file exists like below:

if (!file_exists("settings.ini"))
return false;

it checks whether the file exists in $HOME not in /home/user/files/
scripts/ where the original file is been executed from:

00 20 * * 1 /usr/local/bin/php /home/user/files/scripts/check.php > /
dev/null 2>&1

Why is that?

[Back to original 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

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