RE: [PHP-DB] calling sql script
| From: | (Edward Peloke) | Date: | Thu, 07 Nov 2002 17:13:05 +0000 |
| Subject: | RE: [PHP-DB] calling sql script | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23097@lists.php.net to get a copy of this message | ||
But I am not sure where my hosting companies mysql is so I do not know the
path....
-----Original Message-----
From: Marco Tabini [mailto:marcot@inicode.com]
Sent: Thursday, November 07, 2002 11:31 AM
To: Edward Peloke
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] calling sql script
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!