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
2009-09-23 08:01:45