Dynadot โ€” .com Registration $8.99

Affiliates

Spaceship Spaceship
Watch
I found a script which generated code for me, it gave me this code:
Code:
					<?php
$ndlinks['category'] = '1';
$ndlinks['order_by'] = 'random';
$ndlinks['limit'] = '1';
include '/show_links.php';
?>

But i then get this error:
Code:
Warning: main(): open_basedir restriction in effect. File(/show_links.php) is not within the allowed path(s): (/home/gibbons:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/gibbons/public_html/index.php on line 405

Warning: main(/show_links.php): failed to open stream: Operation not permitted in /home/gibbons/public_html/index.php on line 405

Warning: main(): open_basedir restriction in effect. File(/show_links.php) is not within the allowed path(s): (/home/gibbons:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/gibbons/public_html/index.php on line 405

Warning: main(/show_links.php): failed to open stream: Operation not permitted in /home/gibbons/public_html/index.php on line 405

Warning: main(): Failed opening '/show_links.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gibbons/public_html/index.php on line 405

Line 405 is:
Code:
include '/show_links.php';
Which when i open shows what i want it to.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
try
include './show_links.php';
 
0
•••
Thanks noobie, you've helped me yet again, it wont let me give you more rep but ill send a few NP.
 
0
•••
/ = root. The file isn't in root, and you most likley don't have permission for root.
./ is current directory, so ./ would work. Also, no slash would work too... If it's in the same dir:
include 'show_links.php';
 
0
•••
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back