Afficher un message
Vieux 06/10/2007, 04h44   #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
 
Page generated in 0,05754 seconds with 9 queries