NamePros.Com (http://www.namepros.com/)
-   CODE (http://www.namepros.com/code/)
-   -   Affiliates (http://www.namepros.com/code/183799-affiliates.html)

Xyzer 04-04-2006 01:55 PM

Affiliates
 
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.

Noobie 04-04-2006 02:04 PM

try
include './show_links.php';

Xyzer 04-04-2006 10:30 PM

Thanks noobie, you've helped me yet again, it wont let me give you more rep but ill send a few NP.

cvxdes 04-05-2006 05:51 PM

/ = 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';


All times are GMT -7. The time now is 06:01 PM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0