introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Apache crashes on mysql_select_db



Posted by: gm
October 19, 2009 01:26PM
Apache crahses when mysql_select_db selects a database. Note that this occurs only on my php scripts. PHPmyadmin is able to manage correctly my databases.

// connexion
$link = mysql_connect($host,$user,$pass);
if (!$link) {
die('Impossible de se connecter au serveur : ' . mysql_error());
}


$db_selected = mysql_select_db($bd, $link);
if (!$db_selected) {
die ('Impossible de sélectionner la base de données : ' . mysql_error());
}


Thanks for any input

Gilles
Options: ReplyQuote
Posted by: Amour
October 19, 2009 07:23PM
En fermant ensuite la connexion avec mysql_close(), c'est mieux ?
Options: ReplyQuote
Posted by: gm
October 19, 2009 09:10PM
J'ai deja un mysql_close() a la fin du code php. Il est quand meme etonnant que apache ne soit pas plus robuste.

Cela marchait tres bien avec la version easyphp 2.x.

Merci

Gilles
Options: ReplyQuote
Posted by: gm
October 19, 2009 11:16PM
Je suis passé a la version 5.2.10.

Cela marche sans problemes.... la 5.3. ne semble pas tres mature... Merci pour l'aide.

Gilles
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.