|
Posted by Andy Hassall on 11/06/06 18:03
On 5 Nov 2006 18:21:16 -0800, "lawrence k" <lkrubner@geocities.com> wrote:
>I'm trying to figure out how to export info from a Mysql database,
>using PHP to manage the export, as phpMyAdmin manages to do. I'm
>guessing I need to run a shell script that looks like this:
>
>mysqldump -u username -ppassword database_name > FILE.sql
>
>and I need to call this shell script using one of the functions on this
>page:
>
>http://us2.php.net/exec
>
>but which?
>
>Do I use exec?
Yes, that'd be a reasonable choice for running an external command like
mysqldump.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|