Anybody know what I should do to have this work under vB3.5? It simply outputs the total member count to a .txt file:
PHP Code:
<?php
error_reporting(7);
require("global.php");
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
$result = $numbermembers;
$fp = fopen("test.txt", "w");
fwrite($fp, $result);
fclose($fp);
?>