Maybe I should have told you that the mysql operators on the servers are working fine just this annoying failure.
/bro. > -----Original Message----- > From: brother [mailto:[EMAIL PROTECTED]] > Sent: den 8 januari 2002 22:23 > To: '[EMAIL PROTECTED]' > Subject: [PHP-WIN] mysql_get_server_info( > > > I have put together a informationpage, the same page for two different > machines. They both run win2k server SP2, PHP 4.1.1 and MySQL > 3.23.47-max. > > On the first machine it still works after the installation of > the new MySQL > software but the other box just ends up with complaints on > odbc user and > stuff. The problems is that the mysql configs are the same > and none of them > has a odbc user and never had. > > <? > $host = "schattiga.st"; > $ip=gethostbyname($host); > $diskfree = diskfreespace("/"); > $change = date ("Y-m-d @ B (H:i:s)", getlastmod()); > $version = phpversion(); > $allt = 20597174272; > $procent1 = $diskfree / $allt; > $procent = $procent1 * "100"; > //$mysql = mysql_get_server_info(); > ?> > <head> > <title><?echo $ip ?> - motd.st | persilja.net | schattiga.st</title> > </head> > <body> > <b>Serverinfo</b>: <? print ("$ip is a PIII 650 with 384 mb > RAM running > Windows 2000 Server Family Service Pack 2.") ?><br> > <? echo "<b>Diskspace issues</b>: $diskfree bytes of $allt bytes free, > $procent % free."; ?><br> > <b>PHP version</b>: <? echo $version ?><br> > <b>MySQL verison</b>: <? echo mysql_get_server_info(); ?><br> > <b>Last update</b>: <? echo $change ?><br> > <br><br><br><br> > > > This code works on one server but not the other one...VERY > strange indeed. > > /bro. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]