|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-09 18:09 UTC] zeev at cvs dot php dot net
[2000-07-23 02:53 UTC] zak at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
I've got a long running cgi script that I use to keep track of some statistics. It just sits in the background and checks the database periodically. This script worked fine under the most recent version of php3: #!/usr/local/bin/php -q <script language=php> set_time_limit( 0 ); // set up variables while( true ) { mysql_connect( $server, $user, $password ); mysql_select_db( $dbName ); $results = mysql_query( $query ); $row = mysql_fetch_array( $results ); // do some stuff mysql_free_result( $results ); mysql_close(); sleep( 15*60 ); } </script> Email me if you need any more information.