Hi,
I have some problems using include function on all my servers. For example, there is a file (file.php) on website1.com which looks like:
include_once('/home/other_account/public_html/file.php')
As you see, it just includes content from file of other account.
Now if I enter cronjob "php -q /home/website1/public_html/file.php", I get this warning from cron:
<b>Warning</b>: main(/home/other_account/public_html/file.php) [<a href='function.main'>function.main</a>]: failed to open stream: Permission denied in <b>/home/website1/public_html/file.php</b>
php open_dir protection and safe mode is DISABLED on server, and if I open website1.com/file.php from browser, erverything is just fine - file from other account is included very well and no errors are displayed. Why I get these errors from cron then?