| | |
Problems with PHP and the mysql_connect() command.
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
![]() |
•
•
Join Date: Aug 2006
Posts: 999
Reputation:
Solved Threads: 1
I am currently responsible for a set of server units. Recently, the group of users working with one of these units informed me that they were having problems with a php-based report generating program. I did not write the program; my predecessor did. I did manage to track down the error, though; the program throws the message when attempting to access a mysql database.
Another server, running the same code, has no problems, but is running a different version of PHP. (Working program is running 4.3.10, broken version is running 5.2.*, I think the star is a 0 but cannot recall for certain.) Both systems are running on SuSE 9.2 OS's, both systems are running MySQL 4.1.10a.
Does anyone know what the problem might be? Or perhaps know of someplace I can go to find out more about the problem in question?
Thank you for your consideration,
EnderX
Fatal error: Call to undefined function mysql_connect() in /srv/www/htdocs/tech_site_lst.php on line 123
Another server, running the same code, has no problems, but is running a different version of PHP. (Working program is running 4.3.10, broken version is running 5.2.*, I think the star is a 0 but cannot recall for certain.) Both systems are running on SuSE 9.2 OS's, both systems are running MySQL 4.1.10a.
Does anyone know what the problem might be? Or perhaps know of someplace I can go to find out more about the problem in question?
Thank you for your consideration,
EnderX
Last edited by EnderX; Feb 16th, 2007 at 5:13 pm.
•
•
•
•
I am currently responsible for a set of server units. Recently, the group of users working with one of these units informed me that they were having problems with a php-based report generating program. I did not write the program; my predecessor did. I did manage to track down the error, though; the program throws the messagewhen attempting to access a mysql database.Fatal error: Call to undefined function mysql_connect() in /srv/www/htdocs/tech_site_lst.php on line 123
Another server, running the same code, has no problems, but is running a different version of PHP. (Working program is running 4.3.10, broken version is running 5.2.*, I think the star is a 0 but cannot recall for certain.) Both systems are running on SuSE 9.2 OS's, both systems are running MySQL 4.1.10a.
Does anyone know what the problem might be? Or perhaps know of someplace I can go to find out more about the problem in question?
Thank you for your consideration,
EnderX
Running a query on google brought up a solution. I had to put the file libmysql.dll into Apache directory and it worked perfectly.
You can try the same solution, however Suse 9 is a bit messy, so I am not sure it will work for you. Also I do not know exactly what is the libmysql.dll corresponding file for Linux, so you have to figure it out by yourself.
When you get a solution, would you share it with us, as a "know how"?
Cheers
•
•
Join Date: Aug 2006
Posts: 999
Reputation:
Solved Threads: 1
Does anyone know what the names of the library files are likely to be? I'm not sure what to look for, and I'm not sure what path the original PHP4 system was using; it would be nice if I had some way of tracking down the files it wants so I can put their path into the configuration. Any suggestions on some names to look for?
![]() |
Similar Threads
- new PHP user - help (PHP)
- Problems with the user.php file (Growing an Online Community)
- mysql_connect (PHP)
- PHP Sessions on IIS (PHP)
Other Threads in the PHP Forum
- Previous Thread: embed javascript in php
- Next Thread: find and query an LDAP path with PHP?
| Thread Tools | Search this Thread |
# .htaccess 5.2.10 access alexa apache api array beginner broken cakephp checkbox class clean clients cms code convert cron curl database date directory display dissertation dropdown dynamic echo$_get[x]changingitintovariable... email encode error fairness file folder form forms function functions google hack href htaccess html image images include indentedsubcategory ip javascript joomla legislation limit link local login mail memberships menu methods multiple multipletables mysql mysqlquery network newsletters oop open passwords paypal pdf persist php provider query radio random redirect script search secure securephp server sessions simple sockets source space spam sql system table tutorial upload url user variable video voteup web youtube





