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 shimmyshack on 09/09/07 08:01

On Sep 9, 6:19 am, "Colorado Trout"
<nospam.coloradotr...@mesanetworks.net> 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..

yeah its probably means that you have not adjusted the php.ini file
that apache uses, whereas you have adjusted the php.ini file for the
client version of php.
This is usually because you have installed apache, php and mysql
separately, if you have (as you shuld have) set up php to run as a
module within apache, you will need to place a copy of the php.ini
file in apache/bin and then the server will use this rather than the
php.ini inside the php folder where php.exe resides. hope that makes
sense - a bit mangled cos it's early on sunday morning!

 

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

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