| Lester Caine 2005-10-25, 3:56 am |
| Beau Newcomb wrote:
> I’ve tried everything the faqs say and I’m still unable to get mysql
> support in PHP5..
>
>
>
> I’ve added H:\php to my Windows PATH variable (H: is my main drive)
Not something I've ever had to do but OK
> I’ve uncommented php_mysql.dll
In which copy of php.ini?
The default on should be in your windows directory
> I’ve added the extension directory to php.ini
And that is showing in phpinfo? Which would tell you if you have the
right copy of php.ini ;)
> Rebooted the server
>
> Before doing the above, phpinfo’s output had absolutely no instances of
> the phrase mysql in it, showing it neither disable or enabled. After
> doing the above, phpinfo does show the mysql directory added to some
> environment paths, but still no table showing whether it’s enabled or
> disabled.
>
> Am I missing something? One faq says not to use mysql.dll but
> mysqli.dll ?? where is this? Can anyone shed some light on this subject
> for me?
Have you actually installed mysql in windows? It is not part of PHP and
was dropped as a default from PHP5 because many of us do NOT use or
install it.
You will have to check with MySQL where you get a windows installer and
sort out which version of MySQL you need :) MySQL4 needs the 'i' version
of the PHP interface.
> When I run a mysql test script php returns an error in the line with
> mysql_connect saying it doesn’t understand the function. (which tells
> me mysql support isn’t working)
If php_mysql.dll can't run it should give an error when starting PHP. I
get one for other packages where the actual application they are
connecting to is not installed!
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.
|