You are here: Re: [PHP] How to run .sql files using php « PHP « IT news, forums, messages
Re: [PHP] How to run .sql files using php

Posted by Ahmed Saad on 07/14/05 15:55

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация