Can the update scripts be run from inside a web page; how?

Author Message

Angie Zimaro

Tuesday 21 March 2006 1:17:40 pm

If I can't run the update scripts on the server (no command line or ssh access), then is it possible to create a webpage that calls and runs the scripts when it is hit? If so, how? I've done it with Perl, but am new to php. It would be a lot easier and faster than installing php on my local machine, downloading the site, running the scripts, and then uploading it back to the server. THANKS.

Betsy Gamrat

Tuesday 21 March 2006 6:49:27 pm

Angie,

http://us2.php.net/manual/en/ref.exec.php lists the different ways you can use PHP to execute scripts.

I like to use <b>echo `ls -la`;</b> where the backticks <b>`</b> execute the enclosed command and <b>echo</b> displays the results.

If you are new to PHP, the best resource I have ever found is http://php.net

Good luck

Angie Zimaro

Tuesday 21 March 2006 9:21:46 pm

Thanks, Betsy, I'll try this tomorrow (it's bedtime here). ;-)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.