tandiono Posted December 10, 2007 Share Posted December 10, 2007 I was trying to get the cron running on the following .php code : $root = $_SERVER["DOCUMENT_ROOT"]; require_once("open/test.php"); and i got this error : Warning: require_once(open/test.php) [[1]function.require-once]: failed to open stream: No such file or directory in /home/test/public_html/open/test.php on line 4 Fatal error: require_once() [[2]function.require]: Failed opening required 'open/test.php'(include_path='.:/usr/lib/php:/usr/local/lib/php')in /home/test/public_html/open/test.php.php on line 4 Can anyone please kindly help me on that php code please. Thanks Best Regards, Tandiono Quote Link to comment Share on other sites More sharing options...
tandiono Posted December 10, 2007 Author Share Posted December 10, 2007 The file is exist.. How can i use the full server path.. Please kindly advice me. Thanks The cron im using to calling this is : /usr/bin/lynx -dump http://www.example.com/open/test.php Please kindly advice me. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.