|
Posted by anon on 10/02/59 11:35
registry key! i put it in the windows dir and it worked, but the registry
key is what i was looking for. i thought that by putting c:\php in the PATH
environment variable it would have taken care of that. thanks much for the
assistance.
-a
"Martin Jay" <martin@spam-free.org.uk> wrote in message
news:QFzUzVDrg8qDFwlb@spam-free.org.uk...
> In message <H1wqf.3406$nj1.167@fed1read07>, anon <not@email.com> writes
> >i've installed php5 on my windows 2003 IIS server. everything seemed to
> >work fine.
> >initially i changed a bunch of php.ini settings and they worked fine.
now i
> >am trying to have the php connect to mysql server, so i uncommented the
> >line:
>
> >extension=php_mysql.dll
>
> >to enable things like mysql_connect() and set my extension_dir =
> >"c:\php\ext" so it can load that php_mysql.dll from the correct path.
also,
> >my c:\php\ directory is in the windows environment path, so no problems
> >there... but then i run a php page with phpinfo() it outputs this
values:
>
> >extension_dir C:\php5
>
> >and it doesn't have the expected mysql module section... i don't even
have a
> >php5 directory on this computer, and i tried searching the php.ini for
> >"php5" but it's not even found....
>
> C:\php5 appears to be the default directory where PHP looks for
> extensions.
>
> On my system php -i returns:
>
> extension_dir => C:\php5 => C:\php5
>
> And I have no php.ini file. So it seems likely that PHP on your machine
> is not finding your php.ini file.
>
> The installation information that comes with PHP5 contains the
> following:
>
> "PHP searches for php.ini in the following locations (in
> order):
>
> * PHPIniDir directive (Apache 2 module only)
> * HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath
> * The PHPRC environment variable
> * Directory of PHP (for CLI), or the web server's directory (for
> SAPI modules)
> * Windows directory (C:\windows or C:\winnt)"
>
> If I were you I'd set the registry key mentioned, or simply put php.ini
> into the Windows directory.
> --
> Martin Jay
Navigation:
[Reply to this message]
|