MrCraig
31-12-2007, 09:19 PM
Im making a script that automatically resets the HabboSoft UserSystem!
So far, i have this code
<?php
require("config.php");
$dump = @file_get_contents("SQL.txt");
mysql_query($dump);
?>
The SQL.txt file is CHMODDed to 0644
And ive tried running the file in phpmyadmin seperately and it works fine, however, the script doesnt affect the database at all. It just seems to do nothing.
Ive tried print_r'ing the $dump variable and all the SQL is there.
Any suggestions?
Moved by Agesilaus (Forum Moderator) from Designing & Development: Please post in the correct forum next time. :)
So far, i have this code
<?php
require("config.php");
$dump = @file_get_contents("SQL.txt");
mysql_query($dump);
?>
The SQL.txt file is CHMODDed to 0644
And ive tried running the file in phpmyadmin seperately and it works fine, however, the script doesnt affect the database at all. It just seems to do nothing.
Ive tried print_r'ing the $dump variable and all the SQL is there.
Any suggestions?
Moved by Agesilaus (Forum Moderator) from Designing & Development: Please post in the correct forum next time. :)