Re: Re: Problem with mysql_connect(...)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this is a dll issue; if you are running php5 on windows!

read this..

http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Installation/Q_21077014.html


~viraj.


On 9/19/05, Dan <dseibert9@xxxxxxxxxxx> wrote:
> If this is a windows computer, you might want to try adding C:\PHP (or
> whatever directory your PHP resides) into the path.  I read somewhere that
> this needs to be done for PHP5 and MySQL.  Not sure if it was true but
> seemed to clear up the problems I was having getting the 2 to talk to either
> other.
> 
> 
> -----Original Message-----
> From: Michael Louie Loria [mailto:michaellouieloria@xxxxxxxxx]
> Sent: Monday, September 19, 2005 2:19 AM
> To: php-db@xxxxxxxxxxxxx
> Subject:  Re: Problem with mysql_connect(...)
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> > Hello.
> >
> > I'm trying to connect to my MySQL server with mysql_connect(...). The
> server is up and running,
> and I'm running Apache with PHP properly installed. The code:
> >
> > $hleServer = mysql_connect($host, $user, $password)
> >  or die("Error: Database. Error code: 1. Contact the web master!");
> >
> > $host, $user, and $password are set to correct values (checked and double
> checked). The funny
> thing is that not only does the function call fail, but I'm not even getting
> the text defined by
> die("..."). It seems that the function call is more or less a black hole. Of
> course the rest of
> the script doesn't execute either, I'm just left with a blank page.
> >
> > I didn't use to have this problem before (using PHP 5 now instead of 4).
> 
> check your configurations again. Try checking as if it was a fresh
> install of PHP5
> 
> php5apache2.dll is for PHP5
> 
> and probably you httpd.conf stills contains php4apache2.dll
> 
> Michael Louie Loria
> 
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Comment: Public Key: https://www.biglumber.com/x/web?qs=0x4A256EC8
> Comment: Public Key: http://www.lorztech.com/GPG.txt
> Comment: Google, Skype, Yahoo ID: michaellouieloria
> 
> iQEVAwUBQy6Cd7XBHi2y3jwfAQpZ/Qf/WE5JesJT5FtecqonOOsgsHvEnWXatzWQ
> T/ajJxAcFXftSP8xbxs2z4HZqagwD05PIKN4Jqff+ibqY7zWp74J910ibyDNyHab
> Ui9StkzWuuNvmbg/N8QIlNXbxUqFIugjaJargKnPrtH2X8wl+nHJ1hZf4huQhrX9
> 7xJb3tgaI521IC8c+h+w1SIG5tt90Vcp6U9m21pnbwEfj01nky95JTuD1+6yWZD+
> pZlJ7qrFzTgbKKty1kshIG42wvPuDLrHBayb9+aKo5LeX/Qbfab7iueUMJDoNxAO
> j+NwG/x8R/qb5eqGuhcMNmYn+GxwiQdawk1c4hGj4nN6BGFsGf67vg==
> =VUIf
> -----END PGP SIGNATURE-----
> 
> 
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 0537-2, 09/16/2005
> Tested on: 9/19/2005 5:18:51 PM
> avast! - copyright (c) 1988-2005 ALWIL Software.
> http://www.avast.com
> 
> 
> 
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 9/16/2005
> 
> 
> 
> 
> 
> ______________________________________________________
> Yahoo! for Good
> Donate to the Hurricane Katrina relief effort.
> http://store.yahoo.com/redcross-donate3/
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux