OK, by scratch I mean you have Apache, PHP, and MySQL all happily running. You upload (or untar) my system, which starts out as basically a generic portal site in a box.
So, along with a whole bunch of HTML and PHP files there are a couple dozen SQL files. Here's a short example of what I mean by an SQL file:
USE Molly;
DROP TABLE IF EXISTS config;
CREATE TABLE config (
configID mediumint(9) NOT NULL auto_increment,
description varchar(255) NOT NULL default '',
setting varchar(255) NOT NULL default '',
value varchar(255) default NULL,
whichPicker varchar(255) default 'color',
PRIMARY KEY (configID)
) TYPE=MyISAM;
Default data for table config
INSERT INTO config VALUES (1, 'Window Title', 'g_PageTitle', 'LinuxMolly', '');
INSERT INTO config VALUES (2, 'Company Name', 'g_InstitutionName', 'InterPersonalNet, L.L.C.', '');
INSERT INTO config VALUES (3, 'Abbreviated Company Name', 'g_InstitutionAbbrev', 'IPN', '');
etc. etc.
Now if you have access to the command line it's no big deal to run MySQL and source these files. In fact I have one file that creates the database Molly and sources the rest, so it's really just one command to create the entire database and populate it for the system.
EXCEPT that I can't figure out how to make MySQL do that from within PHP.
Whether I have a good reason or not, it bothers me that I seem to be able to do any other SQL from PHP except this one thing.
And without this one thing it's rather a pain to install a complex web site on a system where the service provider does not give you access to the command line. (Or where the webmaster really does not want to venture into the world of the unix command.)
So... if anyone actually does know how, I'd appreciate a heads up. :-)