I am using the script found at this blog post.
What I am trying to do is output the SQL Code onto the screen and then using file_get_contents from my local web server to get the SQL Query and mysql_query it to my local database.
The problem is when I do this it gives me an error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO...
If I copy and paste the SQL Code from the screen it's executed perfectly fine.
I know this is quite a weird request but if someone could help me find the problem it'll be great.