Reply to Re: can't load any module's

Your name:

Reply:


Posted by Mike Scougall on 02/05/06 22:28

"AquAvia" <a@b.c> wrote in message
news:43e640da$0$11074$e4fe514c@news.xs4all.nl...
> I have installed php5 (windows 2000 environment) and am trying to load
> modules for it.
> I have uncommented extension=php_mysql.dll
> My extension_dir is "c:\phpextensions" and has been verified as being the
> correct path.
>
> However, when starting apache (sucesfully) I cannot connect to mysql using
> mysql_connect();
>
> The application logfile shows me php wasn't able to load the modyle, since
> it can't find it.
>
> I renamed the extension directory to see what the error message would be.
> Apache now refused to start.
> Added the extension path to windows PATH variable... no results
>

I run PHP 4.3.7 on Win2k so what I have may differ a bit.

Here's a comment from my php.ini --
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for
it.

.... so it doesn't sound like you're on the right trail.

Let's step back.
Can you run a basic "Hello World" PHP page without error?
Can you log in MySQL from a command line? Is the MySql server running?
mysql_connect() requires hostname, username and password parameters. Do
those work from the command-line?

Also, php.ini should be in the same dir as the php.exe or edits to it aren't
picked up. That seems obvious but it caught me up early on.. .

------------------------------------
Mike S
Copywriting for the IT Professional
www.redmaplesoftware.com

[Back to original 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

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