Alright, I am working on an installation script and I am having some issues. I have a .sql file that I want to run with php and import it to my database and suggestions?
Depending on the size of the database schema you are using, you could save yourself a tiny bit of overhead by simply hard coding it into the installation script (or even turning your sql dump into a big heredoc and require() or include() it). Alternatively you should look into PHPs file handling functions, such as file() or file_get_contents().
(I would have provided links to each function, but I'm in a hospitable room on a laptop and I hate laptops)
|All times are GMT. The time now is 05:58 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0