Originally posted by j0sh
thx. but isn't there a fast way to convert the sql file to a php file that you only have to open and then it installs all itself?
gr33tz
my simple solution to this.
$source = file_get_contents ("/export/home/user1/disco.sql");
$querys = split(";",$source);
array_pop($querys); // skipping empty array after last ";"
foreach ($querys as $query) {
print "$query";
$result = mysql_query($query) or die("MySQL source disco.sql : " . mysql_error());
}