Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Php cron error

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
PHP:
<?php echo __FILE__; ?>
works on most version
 
Last edited:
0
Close
How do i add those? Please kindly guide me on step by step. Thanks
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back