I am trying to find a way how, if I have a .SQL file uploaded to a particular folder in my web directory, for a .php file to read it and ask the user if they would like to run the sql into the chosen database.
At the present time i've only got the code that reads the .sql file.
<?php
foreach (glob("sqls/*.sql") as $filename)
{
include $filename;
}
?>