©Mike Moxcey 1999
The sql() source code contd.
- $random = time();
- set a variable to the time
- $rand = substr($random,length($random)-8,8);
- set a variable to a piece of the time
- while ( -e "/var/tmp/$rand.sql" ) { $rand = $rand - 600; }
- check for a file with the same name
- $sql_file = "/var/tmp/".$rand.".sql";
- define a temporary file to hold the SQL code
home
next