Posted by Jerry Stuckle on 09/09/07 13:51
Colorado Trout wrote:
> From a command prompt, the calls to mysql work, but from a browser they do
> not..
>
> Fatal error: Call to undefined function mysql_pconnect() in
> D:\work\php\chorelist.php on line 139
>
> is the error, but basically it just means it cannot find mysql..
>
>
>
>
>
No, it means it can't find the MySQL extensions in PHP. It has nothing
to do with whether it finds mysql or not.
Look at phpinfo(). You'll find MySQL isn't listed there. Look at where
it says it's loading the configuration file from. Go to that file and
enable the php_mysql extension.
One other thing which will stop it from loading (under Windows) is not
having the MySQL client DLL in the PATH environment variable.
And BTW - don't use pconnect(). It will slow your system down, unless
you're getting 100K hits per minute or more.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|