PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Fatal error: Call to undefined function mysql_connect()
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Fatal error: Call to undefined function mysql_connect()

Réponse
 
LinkBack Outils de la discussion
Vieux 06/10/2007, 03h03   #1
Austin Powers
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Fatal error: Call to undefined function mysql_connect()

Fatal error: Call to undefined function mysql_connect() in c:\program
files\apache group\Apache\htdocs\mysql_test.php on line 2

I've spent 11 hours today trying to get past this ONE problem.

I have installed:
MySQL 4.1.11
Apache 1.3.33
PHP 5.04

these were the versions referred to in the book "PHP and MySQL".

When I run the script:

<?php
mysql_connect ('localhost', 'root', 'password');
?>

where localhost, root and password are the REAL values for this given test
system and all I have seen is:

Fatal error: Call to undefined function mysql_connect() in c:\program
files\apache group\Apache\htdocs\mysql_test.php on line 2


I can run MySQL and create database etc. If I run the script:

<?php
phpinfo();
?>

I get to see a whole load of info but no mention of MySQL..

If I run 'mysqld --standalone' from a DOS prompt I see "[ERROR] Can't find
messagefile "C:\xampp\mysql\share\english\errmsg.sys" which is correct, as I
no longer has xampp installed 9which is one of the other many options I have
tried today, with equal lack of luck.

Can anyone offer any suggestions?

thanks.


  Réponse avec citation
Vieux 06/10/2007, 03h44   #2
Lars Eighner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Fatal error: Call to undefined function mysql_connect()

In our last episode,
<peydnZbAQIhncZvanZ2dnUVZ_tCrnZ2d@giganews.com>,
the lovely and talented Austin Powers
broadcast on comp.databases.mysql:

> Fatal error: Call to undefined function mysql_connect() in c:\program
> files\apache group\Apache\htdocs\mysql_test.php on line 2


> I've spent 11 hours today trying to get past this ONE problem.


> I have installed:
> MySQL 4.1.11
> Apache 1.3.33
> PHP 5.04


> these were the versions referred to in the book "PHP and MySQL".



In PHP 5, the MySQL extension is no longer built in with the windows
version. Consult chapter 6 of the manual "Installation on Windows Systems."
If I read it correctly, the required dll's are bundled with the Windows
distribution, so perhaps installing them would not be too difficult.


> When I run the script:


><?php
> mysql_connect ('localhost', 'root', 'password');
> ?>


> where localhost, root and password are the REAL values for this given test
> system and all I have seen is:


> Fatal error: Call to undefined function mysql_connect() in c:\program
> files\apache group\Apache\htdocs\mysql_test.php on line 2



> I can run MySQL and create database etc. If I run the script:


><?php
> phpinfo();
> ?>


> I get to see a whole load of info but no mention of MySQL..


> If I run 'mysqld --standalone' from a DOS prompt I see "[ERROR] Can't find
> messagefile "C:\xampp\mysql\share\english\errmsg.sys" which is correct, as I
> no longer has xampp installed 9which is one of the other many options I have
> tried today, with equal lack of luck.


> Can anyone offer any suggestions?


> thanks.



--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 472 days to go.
What do you do when you're debranded?
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09793 seconds with 10 queries