Forums / Developer / Other scripts running with eZ

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?