bhe veramente per eseguire il file .sql non c'è vuole niente...

hai 2 modi

$res=mysql_query(implode("",file("file.sql")));

oppure

$file=file("file.sql");
while (list($tmp,$linea)=each($file)) {
mysql_query($linea);
}

tecnicamente dovrebbero andare tutti e due...



(se non ho scordato niente :P)