I have a php script called hellaVCR. Its in my /var/www/hellaVCR directory.
The only way I can get the script to run correctly is to be IN the directory. For example:
It doesn't run correctly.Code:ryan@rkoffice:/$ php /var/www/hellaVCR/hellavcr.php [10/01/08 06:54:52] processing tv... ryan@rkoffice:/$
BUT if im IN the directory before I run the script, it works fine...
Code:ryan@rkoffice:/$ cd /var/www/hellaVCR ryan@rkoffice:/var/www/hellaVCR$ php /var/www/hellaVCR/hellavcr.php [10/01/08 06:55:44] processing tv... [10/01/08 06:55:44] House (x264, English) [10/01/08 06:55:44] last episode: 5x03 [10/01/08 06:55:58] saving xml file | done ryan@rkoffice:/var/www/hellaVCR$
I'm ultimately needing to setup as a cron, but I figure I need to get it working in terminal first.



Adv Reply


Bookmarks