>>>>> "nicolaas" == nicolaas <[email protected]> writes:
nicolaas> Hi Gurus I was wondering how I can use PHP to save a
nicolaas> mysql database as a file and then, in a second function,
nicolaas> let the file replace my current database. Can this be
nicolaas> done in a few lines of PHP?
You always have the PHP system command:
system ('mysqldump mydb > /tmp/mydb.dump');
which calls the scripting environment.
nicolaas> Would it perhaps be better done outside PHP in a small
nicolaas> bash script.
It all depends. Perhaps better to start with what you know, although
scripting is usually fewer lines for simple commands.
But as soon as it starts to become more complex, PHP would be better.
--
All the best,
Berend de Boer
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]