Forum Moderators: coopster
Report.php works perfectly when I open it from a webbrowser (mysite.com/admin_section/admin.php), but when I run from my crontab or command line via:
# /usr/bin/php /home/mysite.com/httpdocs/admin_section/report.php
The report.php file then chokes on the include.
"PHP Warning: main(../connections/connect.php): failed to open stream: No such file or directory in..."
And the strange thing is this used to work before my server was upgraded by tech support. If I get rid of the relative path and include the full server path to connect.php, it works perfectly (but because I have a number of scripts like this, it isn't practical for me to change any of the PHP code).
Any ideas on how I can fix this?
Any ideas on what could be causing this?