[PHP-DB] php_mysql not loaded under Apache but is there in CLI?

2006-09-19 Thread theBrem

All,

I'm new to this news group - so apologies if I blunder.

I've just installed Apache2, MySQL and php (5.1.6) under Windows XP 
(haven't tried this under Linux yet).  When I access via Apache as 
http://localhost/info.php there is no MySQL support - and testing it 
further I get errors trying to log on to the database via the web server.


However, if I use the CLI (e.g. php -i) the MySQL support is there - and 
I can connect to the database OK from the CLI.


Both sets of info show they're using the same php.ini file, they ARE the 
same version.  I can't see what's going on.


Other loadable modules (e.g. php_gd) are loading as you'd expect in both 
environments - it's only MySQL that's affected.


Any help with this would be much appreciated.

Thanks in advance,
theBrem.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] php_mysql not loaded under Apache but is there in CLI?

2006-09-19 Thread Chris

theBrem wrote:

All,

I'm new to this news group - so apologies if I blunder.

I've just installed Apache2, MySQL and php (5.1.6) under Windows XP 
(haven't tried this under Linux yet).  When I access via Apache as 
http://localhost/info.php there is no MySQL support - and testing it 
further I get errors trying to log on to the database via the web server.


However, if I use the CLI (e.g. php -i) the MySQL support is there - and 
I can connect to the database OK from the CLI.


Both sets of info show they're using the same php.ini file, they ARE the 
same version.  I can't see what's going on.


Double check that. In the info page look for:

Configuration File (php.ini) Path

Are you sure they are the same?
--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php