Hello, i need to know, how can i excute .sql file against mysql through php?
it's really urgent, thanks in advanced
<?php $file = fopen("file.txt", "r"); #################### # connect to mysql database #################### foreach($file as $line) { mysql_query($line); } ################## # close mysql connection ################## ?>