Forums / General / how to run script online without access to PHP

how to run script online without access to PHP

Author Message

Kristoffer Raun

Monday 13 November 2006 2:16:46 pm

How can i run the script online:
updatecontentobjectname.php
and without access to usr/bin/php in shell mode?
I need to update the content object name in the classes

Thanks in advance

/Kristoffer

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming

kracker (the)

Monday 13 November 2006 2:54:25 pm

Sorry, this is not recommended....

There are a number of dependent issues involved with this subject.
- It is s php-cli script which is different than stock php
- While you might be able to patch or hack the script to run,
I would not trust it as many other issues could cause it to
'timeout' and fail to complete it's task or simply catch a 'fatal' error.

<b>Reference</b>
<i>http://ez.no/community/forum/install_configuration/patch_for_systems_without_phpcli/re_patch_for_systems_without_phpcli</i>

I would urge you to seek a host which provides ssh access to the server as the best solution to reduce time exausted in search of a solution and remove this potential <b>major</b> breakdown in using and supporting an eZ publish installation.

I've been developing with eZ for just about 6 years now and I can't stress the above warning enough.

//kracker
<i>Modest Mouse - Paper Thin Walls ...</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Kristoffer Raun

Monday 13 November 2006 3:30:52 pm

Thanks a lot.

I've dealt with this problem in a "detour"-way.
By taking the whole site to my local computer, using Cli-mode and then uploading the whole thing again. I was just wondering if there was an easier way.

I'm new to all this, have been using Ez in 1 1/2 year, everything selftaught and with the help of this forum. It has been a battle, but now it's great to say "yes this is certainly possible" to your boss ;-)

by the way why does "1/2" (when using the key on the keyboard) look like ½???
Anyway i will read your link and contact my hosting for ssh.

/Kristoffer

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming

kracker (the)

Monday 13 November 2006 7:01:02 pm

<b>@Kristoffer</b>
<i>
>Thanks a lot.</i>

Your welcome :)

<i>
> I've dealt with this problem in a "detour"-way.
> By taking the whole site to my local computer,
> using Cli-mode and then uploading the whole thing again.
> I was just wondering if there was an easier way.</i>

This is a very smart detour indeed!

Though doing this to a production site with uptime requirements, search stats, or other data being created within the eZ publish db when the site is live might pose serious problems of availability, loss of db data during this 'window', etc a problem to this detour dead ends it's usefulness. We each have our own marching orders, sometimes not quite the same.

Still in lower requirements arena this is just the way it's still done (sadly).

<i>
> I'm new to all this, have been using Ez in 1 1/2 year,
> everything self taught and with the help of this forum.</i>

This is great to hear 'how long' from another user who's been
hooked up on all things eZ.

<i>
> It has been a battle, but now it's great to say "yes this is certainly possible" to your boss ;-)</i>

<b>Agreed</b>

<i>
> by the way why does "1/2" (when using the key on the keyboard) look like ½???</i>

I have no idea ... I honestly did not follow the context unspoken in how this would happen. Sorry. When in doubt, file a detailed bug report in the issue tracker :\

<i>
> Anyway i will read your link and contact my hosting for ssh.</i>

Shell access, root access, dedicated server environment, co-located hardware ... these are the tools of a craftsman.

<i>Time to stop taking it all so serious ...</i>

Best wishes
//kracker

<i>Modest Mouse - Karma Payment Plan</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

eZ debug

Timing: Jan 18 2025 16:12:08
Script start
Timing: Jan 18 2025 16:12:08
Module start 'content'
Timing: Jan 18 2025 16:12:09
Module end 'content'
Timing: Jan 18 2025 16:12:09
Script end

Main resources:

Total runtime1.2935 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.8359180.8203
Module start 'content' 0.00631.1480 768.6563582.7578
Module end 'content' 1.15430.1391 1,351.4141336.7500
Script end 1.2934  1,688.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3204210.0002
Check MTime0.00160.1249210.0001
Mysql Total
Database connection0.00070.057410.0007
Mysqli_queries1.206293.24981970.0061
Looping result0.00220.16691950.0000
Template Total1.262697.620.6313
Template load0.00220.173220.0011
Template processing1.260397.433420.6302
Template load and register function0.00010.006510.0001
states
state_id_array0.00180.142210.0018
state_identifier_array0.00160.124120.0008
Override
Cache load0.00200.1562650.0000
Sytem overhead
Fetch class attribute can translate value0.00230.178930.0008
Fetch class attribute name0.00140.106960.0002
XML
Image XML parsing0.00160.123830.0005
class_abstraction
Instantiating content class attribute0.00000.002780.0000
General
dbfile0.00310.2429350.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs