tags:

views:

40

answers:

1

how can i use exec() method to import a .sql file in php? what is its output?

A: 

You would need to use the command line client. For example, using mysql:

  exec('mysql db_name < script.sql > results')
Jeff Ober