NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
<SOLVED> debug holds on mysql_connect


Joined: 19 Sep 2005
Posts: 2
Reply with quote
With nusphere 4 in Windows XP, debugging php5 scripts, execution stops in a mysql_connect sentence. Mysql is on local and the page works fine with the web server, also using php5.

No errors or warnings shown, just execution stops there, like if it was waiting for something

The line is this:

if (!($this->_resource = @mysql_connect( $host, $user, $pass ))) {
die( 'FATAL ERROR: Connection to database server failed.' );

SOLUTION: The problem was that $host was set to $_SERVER['HTTP_HOST'], so it was 'localhost:8080'. Put it as 'localhost' and now it works right. Sorry Embarassed
View user's profileFind all posts by perezSend private message
<SOLVED> debug holds on mysql_connect
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic