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:
Dell PowerEdge Servers
  #1  
Old July 30th, 2007, 04:10 PM
NetSurfer NetSurfer is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 82 NetSurfer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 16 h 21 m 42 sec
Reputation Power: 0
Unhappy Using MySQL

Hi, guys.
I use php 5.2.3, IIS 5.1, Windows XP SP2 and MySQL 5.0.
So, this is my problem: I cannot use mysql functions though I properly set PATH env. variable, have libmysql.dll in my php directory and enabled mysql extension in php.ini. Documentation says I must compile php with support for MySQL, but how can I get to know is my php already compiled with such support and if not do I need to download some extra source files or libraries (except those, mentioned in documentation) to compile php with MySQL support? I got almost lost. Help me please.
Thanks in advance

Reply With Quote
  #2  
Old July 30th, 2007, 05:41 PM
gforce8856 gforce8856 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 69 gforce8856 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 54 m 54 sec
Reputation Power: 2
Same problem here.

Quote:
Originally Posted by NetSurfer
Hi, guys.
I use php 5.2.3, IIS 5.1, Windows XP SP2 and MySQL 5.0.
So, this is my problem: I cannot use mysql functions though I properly set PATH env. variable, have libmysql.dll in my php directory and enabled mysql extension in php.ini. Documentation says I must compile php with support for MySQL, but how can I get to know is my php already compiled with such support and if not do I need to download some extra source files or libraries (except those, mentioned in documentation) to compile php with MySQL support? I got almost lost. Help me please.
Thanks in advance


I have a similar problem. I get an error message undefined function mysqli_connect(). I have read in a few places that I must re-compile with the mysql drivers, but I don't have a compiler, nor am I sure of what to compile. Also TIA>

Reply With Quote
  #3  
Old July 30th, 2007, 06:08 PM
cwf's Avatar
cwf cwf is online now
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 343 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 8 m 34 sec
Reputation Power: 2
For Windows operating systems, use the pre-compiled binary (download from php.net). Under Windows, unless you are adding your own custom extension that you wrote yourself, there is no need to be compiling PHP.

If you add the path to php (usually something like c:\php) to the Windows path statement, there is no need to copy any extension files around to get any extension to work.

Make sure that the php.ini extension_dir = setting points to where your extension .dll's are located. The name of the folder is different for php4 and php5.

Also, make sure that the extension .dll's are actually present. The .msi installer version of php does not include them.

Make sure that the php.ini that you are making changes to is the same one that php is using.

Under IIS, you must either make a registry entry to tell php where to look for the php.ini or you must copy it to the Windows folder. Under Apache, there is a httpd.conf setting that tells php where to look for the php.ini.

Under IIS, you must restart your computer to get changes made to php.ini to take effect. Under Apache, you only need to stop and start your web server.

If you make changes to the Windows path, you must restart your computer to get the change to take effect.

Most of the above information is contain in the install.txt file that comes with php (and is also repeated in the installation section of the PHP manual.)

If you are using IIS and there is no specific reason that you must use it, Apache is a much better choice.
Comments on this post
NetSurfer agrees!

Reply With Quote
  #4  
Old July 30th, 2007, 06:51 PM
NetSurfer NetSurfer is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 82 NetSurfer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 16 h 21 m 42 sec
Reputation Power: 0
Oh, Jesus Christ! Can you guess what was wrong?? The only thing I needed was to move my php.ini to the Windows directory. And official documentation tells NOTHING about it!!
Thanks man, you almost saved my life!!!))

Reply With Quote
  #5  
Old July 30th, 2007, 07:33 PM
gforce8856 gforce8856 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 69 gforce8856 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 54 m 54 sec
Reputation Power: 2
Okay now

Quote:
Originally Posted by NetSurfer
Oh, Jesus Christ! Can you guess what was wrong?? The only thing I needed was to move my php.ini to the Windows directory. And official documentation tells NOTHING about it!!
Thanks man, you almost saved my life!!!))


In my case I had to add a c:\php\ext\ to my path even though the extension directory was set properly in the ini file. Thanks for all of the help. I do have one more problem that I will present as a new thread.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Using 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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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