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.

eZ debug

Timing: Jan 31 2025 09:13:23
Script start
Timing: Jan 31 2025 09:13:23
Module start 'layout'
Timing: Jan 31 2025 09:13:23
Module start 'content'
Timing: Jan 31 2025 09:13:23
Module end 'content'
Timing: Jan 31 2025 09:13:23
Script end

Main resources:

Total runtime0.0170 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.4297151.2422
Module start 'layout' 0.00560.0026 739.671936.6953
Module start 'content' 0.00820.0072 776.367290.1563
Module end 'content' 0.01540.0016 866.523429.9922
Script end 0.0170  896.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.1762140.0002
Check MTime0.00116.3882140.0001
Mysql Total
Database connection0.00095.365310.0009
Mysqli_queries0.002615.517230.0009
Looping result0.00000.058910.0000
Template Total0.00126.910.0012
Template load0.00095.312110.0009
Template processing0.00031.580610.0003
Override
Cache load0.00063.690810.0006
General
dbfile0.002011.900680.0003
String conversion0.00000.040640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs