Thread: SQL Import
View Single Post
Old 12-11-2009, 11:15 PM   #2 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

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)
delayedinsanity is offline  
Reply With Quote