View Full Version : MySql error
zzsurf
10-07-2006, 08:26 AM
what may cause this mysql error
http://zzsurf.ulmb.com
Warning: include() [function.include]: open_basedir restriction in effect. File(/vars.php) is not within the allowed path(s): (/hosted/subs/ulmb.com/z/z/zzsurf/public_html:/var/tmp/upload) in /hosted/subs/ulmb.com/z/z/zzsurf/public_html/index.php on line 245
I think script can't connect database , I put the database name and username and also the password all are correct
I change db_host from "Localhost" to "mysql" is that correct ??
//Database host:
$db_host = 'mysql';
what may cause this problem , anybody here got such error before ??
I appreciate your help
thanks in Advance
yeah thats correct it is "mysql" instead of Localhost. looking at the error, im no expert with mysql but it looks like its trying to access a folder it cant, maybe its uploaded in the wrong place or the paths in the code arent set correctly or maybe the directory it is in needs the attributes changing by chmod. Total guess though, correct me if im wrong anyone.
zzsurf
10-07-2006, 03:09 PM
CHMOD must be 755 for all files and folders and I already did that but still not work
you are right there must be something wrong in the directory path but I can't figure out where !!!
Tyler
10-07-2006, 03:51 PM
Thats a php error not mysql.... when you use the include function use the full path to your file not the single file name:
(/hosted/subs/ulmb.com/z/z/zzsurf/public_html/FILENAME.php
zzsurf
10-08-2006, 03:35 PM
Thats a php error not mysql.... when you use the include function use the full path to your file not the single file name:
(/hosted/subs/ulmb.com/z/z/zzsurf/public_html/FILENAME.php
I tried that but still same error
for example the file http://zzsurf.ulmb.com/stats.php , have these 3 lines to connect database
include($DOCUMENT_ROOT . '/vars.php');
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
I edit it and changed the path to
include('/hosted/subs/ulmb.com/z/z/zzsurf/public_html/vars.php');
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
But still same error appear !!!!
What you want to install???
Tyler
10-08-2006, 05:16 PM
I see different errors on the page you posted a link to
Access denied for user 'root'@'localhost'
Which means that you did not setup the username or password for your script.
zzsurf
10-08-2006, 09:08 PM
What you want to install???
iam installing autosurf traffic exchange script
zzsurf
10-08-2006, 09:10 PM
I see different errors on the page you posted a link to
Access denied for user 'root'@'localhost'
Which means that you did not setup the username or password for your script.
the path you give me is correct , now it works
now I have to change path on every include phrase and it will work perfectly
thank you so much for your great support
:)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.