Running Script from Form -
12-07-2008
, 05:07 AM
I've got a script file that is in a directory that is parallel
to my public HTML directory on my Web site.
By parallel directory, I mean that /public_html is in the same
subdirectory as /database.
I have script in the database subdirectory that is currently
set to run once daily by cron. It backs up the data in my SQL
database and saves the backup into the same directory.
I would like to be able to manually execute that file from a
management Web page I have created. For example, I'd like to have a
button on a form that when I push the 'Submit' button that the file is
executed and a backup is made.
What is the best way to do this?
Regards,
Fred |