RE: [PHP-WIN] mysql_get_server_info(
| From: | brother | Date: | Tue, 08 Jan 2002 21:24:51 +0000 |
| Subject: | RE: [PHP-WIN] mysql_get_server_info( | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11354@lists.php.net to get a copy of this message | ||
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:brother@lunarstorm.se]
> Sent: den 8 januari 2002 22:23
> To: 'php-windows@lists.php.net'
> 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: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>