Reply to Re: PHP5.05, Mysql4.1, Apache on Windows XP - cant get php to talk to mysql

Your name:

Reply:


Posted by Adam on 10/03/05 08:39

On 2 Oct 2005 12:24:39 -0700, gregsands wrote:

>I have read all (ok most) of the posts relating to "Call to undefined
>function mysql_connect()", read the manual on PHP.net and done
>eveything thats ive been asked to do but cant get PHP to talk to MySQL,
>PHP is working fine but I dont get any mysql info when running <?
>phpinfo() ?> and get the "Call to undefined function mysql_connect()"
>when trying to connect to mysql through php in browser, please help.
>
>1. I have added C:\php; to the end of the environment variable path
>2. I have edited my php.ini file to :
> extension_dir = "c:\php\ext"
> extension=php_mysql.dll - removed the ";"
> ... ive checked i only have 1 php.ini file!
>3. The dll "libmysql.dll" is in the folder C:\php
>4. The dll "php_mysql.dll" is in the folder c:\php\ext

I've found the biggest pain in Win32 installs of PHP/MySQL to be the
path to the PHP.INI file not being read correctly - or ditto with
paths to extensions.

Make some odd, highly visible (or error-producing) change to check
that you are actually editing the right one. I've sometimes found that
even with setting up the PATH properly, Windows seems to insist on
having the ini file in the windows directory - even after rebooting
etc.

Adam.

[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

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