Other scripts running with eZ

Author Message

John van der Boom

Wednesday 18 June 2003 8:21:07 am

I already asked this a couple of times, tough I don't seem to get an answer. I don't think it is impossible, because I saw a contributions about this: How to include your own PHP script in eZp.

Can someone, maybe someone of the ez team, tell me/us how to do this?
See http://www.ez.no/developer/ez_publish_3/forum/developer/_error_own_php_script_inside_ezp_2

See also: http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/how_can_i_use_my_own_php_script_inside_ezp

If this is impossible to accomplish can you tell me this too? So I can go on looking for another CMS script/program.
Thank you in advance!

Sven Ryen

Thursday 19 June 2003 2:36:34 am

if you plan to simply have php scripts running at the same domain/virtual-host as ez - but don't need any intercommunication between your scripts and EZ - one solution is:

? set up apache to treat one specific file extension as PHP scripts

? make the appropriate changes in the virtualhost config to allow passtrhough of that extension alongside jpeg, gif, js, etc.

If you're looking for scripts that communicate with EZ and the template engine, of course that's possible to, and there are many ways of achiveving this.

You should be aware, though, that in most cases, the built-in datatypes, workflows, etc can be tailored to meet the needs of most web applications.

John van der Boom

Thursday 19 June 2003 3:09:26 pm

I'm trying to let a script communicate with the templates of EzP, but without any success. I'm folowing the how-to:
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/how_can_i_use_my_own_php_script_inside_ezp

I'm using the function ob_start, ob_get_contents() and ob_end_clean() to define a variable in the index.php. When I try to echo it in the templates {$variable}. I get a message from the debugger that the variable doesn't exist.

Problem:
It seems like a variable defined in index.php doesn't exist in the templates engine. There's some information missing in the how-to.
Do you know howto make the template use the variable I've defined in index.php?

You're saying there are other way to accomplish this. What are they?

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 18 2025 15:18:08
Script start
Timing: Jan 18 2025 15:18:08
Module start 'layout'
Timing: Jan 18 2025 15:18:08
Module start 'content'
Timing: Jan 18 2025 15:18:08
Module end 'content'
Timing: Jan 18 2025 15:18:08
Script end

Main resources:

Total runtime0.0155 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 589.0313152.6250
Module start 'layout' 0.00570.0035 741.656339.4453
Module start 'content' 0.00910.0043 781.101689.2109
Module end 'content' 0.01340.0020 870.312534.3047
Script end 0.0155  904.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.0356140.0002
Check MTime0.00116.9109140.0001
Mysql Total
Database connection0.00074.498510.0007
Mysqli_queries0.003220.918830.0011
Looping result0.00000.115410.0000
Template Total0.001610.310.0016
Template load0.00095.717010.0009
Template processing0.00074.504710.0007
Override
Cache load0.00063.573910.0006
General
dbfile0.00021.292380.0000
String conversion0.00000.064640.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