Subject Can you run an sql script from php?
Author willogibbo

Is it possible to run an sql script from php?

I know that queries and stored procedures can be (ibase_execute,
ibase_query etc..), but I was wondering if there is any way to run an
sql script e.g. a script that creates tables, procedure, triggers etc..

I suspect the answer is no. I saw, on this forum, a post from Nigel
Weeks, back in April 2005 that included a "script runner", namely a
method of breaking a script up into its constituent queries and
running those sql statements sequentially.

If running scripts is not possible, can you put DDL script (say that
creates a generator with its associated auto-increment trigger) into a
form of sql that can be "run" from php?