How does php know where MySQL headers are stored?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How does php know where MySQL headers are stored?

Postby sysop1911 » 13. October 2009 16:07

In XAMPP, where is location of the MySQL headers stored? I recently upgraded Apache, PHP and MySQL, but when I go to phpinfo.php, it says my Client API headers are version 5.0.51b, which was the old version of MySQL I had installed, but the Cilent API library says 5.0.87, which is the new version of MySQL. I know it gets the library from libmysql.dll, which I have in Windows\system32, but I need to know how to set php to include the mysql\include path so it knows where the correct header files are. I looked in the php.ini file, but didn't see a setting for the location of the mysql headers files. Do I need to copy the mysql .h files to xampp\apache\include? Thanks.
sysop1911
 
Posts: 7
Joined: 21. August 2009 13:47

Re: How does php know where MySQL headers are stored?

Postby Wiedmann » 13. October 2009 16:36

it says my Client API headers are version 5.0.51b

That's a compile time value.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How does php know where MySQL headers are stored?

Postby sysop1911 » 13. October 2009 17:58

Any idea how to get it to be the correct version of MySQL? Apache, PHP are the latest versions and MySQL is from the MySQL install file for version 5.0.86. I wonder why it would still show the old version.
sysop1911
 
Posts: 7
Joined: 21. August 2009 13:47

Re: How does php know where MySQL headers are stored?

Postby Wiedmann » 13. October 2009 20:33

Any idea how to get it to be the correct version of MySQL?

Compile the extension your own.

I wonder why it would still show the old version.

Because your extension is compiled with the headers from version 5.0.51b.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 47 guests