You are here: Re: exec or shell_exec for dumping MySql info? « PHP Programming Language « IT news, forums, messages
Re: exec or shell_exec for dumping MySql info?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация