Unstoppable Domains

Php cron error

Spaceship Spaceship
Watch

tandiono

Tandiono.comEstablished Member
Impact
0
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
It is a fairly simple error. The script that is trying to run could not find another script that it relies upon.

The file it could not open is called open/test.php. Ensure that this file does indeed exist where it is meant to. also try using a full server path.
 
0
•••
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
 
Last edited:
0
•••
PHP:
<?php echo __FILE__; ?>
works on most version
 
Last edited:
0
•••
How do i add those? Please kindly guide me on step by step. Thanks
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back