/ Published in: PHP
Expands a MySQL / Gzipped file and executes it's queries.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /************************************** seesaw associates | http://seesaw.net client: file: description: Copyright (C) 2008 Matt Kenefick(.com) **************************************/ class expandSQL{ var $db; function expandSQL($db){ $this->db = $db; } function expand($file){ foreach($sql as $query) $db->query($query); return true; } $fileExt = $this->getext($filename); $nLines = ''; case 'gz': break; case 'sql': break; } foreach($lines as $line) { $nLines .= $line; } } } function getext($filename){ return $ext; } } ?>