PHP Settings and mySQL

Hello All-

I have posted this in this category because I am trying to figure out whether it is the server settings (which at this point seems to be) or the code (the code works on others sites)

I am having a bit of difficulty (See Below) running a PHP directory script. Hopefully I have posted this in the correct category. I have a nagging feeling my problems are being caused by an incorrect setting in either PHP or mySQL. Could someone take a look at my PHP settings and let me know if something is set incorrectly. My config is here --> http://www.kwikgoblin.com/phpinfo.php My issues are two fold.

1.) I seem to have a problem holding a log-in with some of the directories I have tried to install. It queries the mySQL database and returns that the login is correct but as soon as I try to do anything, it loses the login (returning to the login screen)

2.) With Biz Directory in particular, If you try to suggest a url from the main page - www.kwikgoblin.com it goes to http://add_url.php/?c=1 instead of http://www.kwikgoblin.com/add_url.php/?c=1

If you put the second url in by hand it brings you to the correct "suggest a url" page. But then notice when you mouseover the Kwik Goblin text link you get http:///

It obviously is using a slash instead of the root url.
It seems to be the $dir variable that isn't correct

It pulls it from this include which seems to be the issue



PHP Code:
 
<? 
ini_set
("register_globals""0"); 
$dir "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; 
$dir substr($dir,0,strrpos($dir"/"))."/"
if (
is_array($_GET) || is_array($_POST)){ 
if (
getenv("REQUEST_METHOD") == "POST"){ 
extract($_POST); 
}else{ 
extract($_GET); 
}; 
}; 
Code Continues After this point.............


This is the only config file which is for the mySQL database:


PHP Code:
<? 
$mysql_hostname 
"mysql.*******.com"
$mysql_user "*******"
$mysql_password "*******"
$mysql_database "kwikgoblin"
$prefix "dir_"
$show_additional_results TRUE// TRUE OR FALSE 
$bannerboxes_id "f48a32ca-72a7-498d-8a49-66e5b2e3093c"
// Get your own id at <a href="http://www.bannerboxes.com?affid=f66b05a0-7274-4701-9183-b075e015c6af" target="_blank">[url]http://www.bannerboxes.com?affid=f6...83-b075e015c6af[/url]</a> 
// and start earning money with your directory! 
?>


Is it possible it is either a PHP setting or a setting in mySQL?

Thanks in advance

 

 

 

 

Top