Re: How to run .sql files using php

From: Date: Fri, 15 Jul 2005 23:23:13 +0000
Subject: Re: How to run .sql files using php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-218786@lists.php.net to get a copy of this message
Ahmed: It's real perfect! B/R 2005/7/14, Ahmed Saad <myanywhere@gmail.com>: > > hi babu > > On 7/13/05, babu <garavindbabu@yahoo.co.uk> wrote: > > i have a set of queries which i have placed them in one .sql file.i want > to run this file using php's mssql and oracle(oci) functions. > > you need a database abstraction layer to help you with that (adodb for > example) > > function fireSQL( $driver ) > { > > // establish the connection to the database using the specified driver > > // read SQL from the file (probably tokenizing it into sql statements) > > // feed the sql into the connection > > } > > -ahmed > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#218786) next »