SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old August 14th, 2006, 11:40 PM
cartographer cartographer is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 cartographer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
php 5 installing mysql

After receiving a fatal error: "Fatal error: Call to undefined function mysql_pconnect() in x on line 11", I realized that I needed to install mysql for php 5. So, following the php website, I uncommented "extension=php_mysql.dll" in the php.ini file, and also wrote "extension_dir = "C:phpext"". My PATH variable already has "C:php" in it, where libmysql.dll is located. I then tried the php script again, but the same error showed. So I restarted my web server and mysql, but the same error was still there.

What did I do wrong when I installed mysql with php 5?

I also tried looking at phpinfo(). I searched the page, but "mysql" did not show up.

Reply With Quote
  #2  
Old August 18th, 2006, 02:09 PM
jonoz jonoz is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Colchester, Essex, UK
Posts: 1 jonoz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: php 5 installing mysql

I had a similar problem installing PHP5 & MySQL5 on my laptop, using Apache 2 web server, when I needed to move from PHP4 and MySQL4, etc..

It seems that PHP was not picking up the php.ini file even though it was there and had the correct entries. phpinfo() was not reporting the location of the php.ini file correctly, showing something like c:windows. Stopping and re-strating the services, re-booting the laptop, etc.. did not correct the problem.

I eventually got it to work, after one week, by un-installing PHP and starting again from scratch, now works OK! ?????

Hope this helps, good luck.

Jon

Reply With Quote
  #3  
Old August 18th, 2006, 08:51 PM
cartographer cartographer is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 cartographer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: php 5 installing mysql

Quote:
phpinfo() was not reporting the location of the php.ini file correctly, showing something like c:windows.

I checked my phpinfo(), and like you said, it showed "Configuration File (php.ini) Path C:WINDOWSphp.ini". I copied my php.ini file in c:php, and put it in c:windows. Now it works! Thanks!

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > php 5 installing mysql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway