purencool Posted June 5, 2011 Share Posted June 5, 2011 Hi phpfreaks, I am creating an install script for a small app I have the .sql file ready to go. Is there away to place the .sql file into the pdo. Or do I open the file and then place it into the prepared method a execute it? Link to comment https://forums.phpfreaks.com/topic/238502-sql-and-pdo/ Share on other sites More sharing options...
xyph Posted June 5, 2011 Share Posted June 5, 2011 Your best bet is to use something like PHPMyAdmin to execute the .sql file. Otherwise, you'll have to read the file into PHP, break the file into individual queries, and execute each. Link to comment https://forums.phpfreaks.com/topic/238502-sql-and-pdo/#findComment-1225669 Share on other sites More sharing options...
purencool Posted June 6, 2011 Author Share Posted June 6, 2011 thanks that is what I thought. I want to open source this script so I thought a simple installer would be of used to the person wanting to install it. Link to comment https://forums.phpfreaks.com/topic/238502-sql-and-pdo/#findComment-1225700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.