You are here: Re: mysql calls work from command line but not from web (apache) on win xp « PHP Programming Language « IT news, forums, messages
Re: mysql calls work from command line but not from web (apache) on win xp

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
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация