RE: [PHP4BETA] Initial experience - it breaks ;)

From: Date: Mon, 19 Jul 1999 22:24:48 +0000
Subject: RE: [PHP4BETA] Initial experience - it breaks ;)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2271@lists.php.net to get a copy of this message
(Replies at the bottom) > At 23:48 19/07/99 , Sander Pilon wrote: > >Okay, i've compiled it, put it online and... it breaks :) > > > >Most of the stuff works, but I've been getting weird MySQL and uksort() > >errors: > > > >First, MySQL: > > > >Warning: MySQL Connection Failed: Unknown MySQL Server Host > (tdn_sections) > >(0) in tdn_functions.x on line 407 > > > >The piece of code: > > > >Function TDN_Frontpage_Sections() > >{ > > global $sectionsdatabase,$sander,$pollcookie,$pollid; > > > > $p_sec="tdn_fp"; > > > > $q="select identifier,url from sections where > section='$p_sec' order > >by added desc"; > ><407> $r=mysql($sectionsdatabase,$q); > > echo "Err.".mysql_error(); > > Looks like a configuration issue (perhaps linked to a bug, perhaps > not). The error you're seeing comes straight out of MySQL, that fails > connecting to the tdn_sections host. Does that host exist? Does > mysql -h > tdn_sections work? > Do you have successful MySQL links in the same script? In other > scripts? If you do, do they differ in any way (e.g., do you explicitly > call mysql_connect() in them?) It's the *EXACT* same code that has been running for MONTHS, just fine. I copied PHP3.INI to PHP.INI and did a symlink from PHP.INI to PHP3.INI so PHP3 doesnt break. No other changes were made to PHP.INI. (Is that nessecary?) > > What's the content of your php.ini? > mysql.default_host = 127.0.0.1 ; <comment> mysql.default_user = nobody ; <comment> mysql.default_password = ; <comment> > (If you go through the bug report process, it'll remind you to > mention most of these things). > Wednesday, i'll submit these. I'll be gone until then. Sander

« previous php.version4 (#2271) next »