Re: calling sql script
| From: | Marco Tabini | Date: | Thu, 07 Nov 2002 16:31:01 +0000 |
| Subject: | Re: calling sql script | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23096@lists.php.net to get a copy of this message | ||
You can use exec
http://ca.php.net/manual/en/ref.exec.php
You will probably need to call the mysql shell like so:
/path_to_mysql/mysql -u user -p password [-h host] -D database -e \\.
filename
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmer
Come visit us at http://www.phparch.com!