Forums / Developer / PHP integration

PHP integration

Author Message

Salvatore Guarino

Thursday 13 October 2005 7:12:31 am

I created a little php application to help users to choose products. This application retrieve technical information from a MySql DB. I need suggestions to integrate this php page in eZpublish, without kernel hacking. Some ideas?

Fabricio Guerrero

Friday 14 October 2005 3:08:17 am

I would also like to know if that's possible.. sometimes doing some coding in php would help alot..

kind of like smarty template programming... there you can always switch to php by including the
{php}...{/php} tags.

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Alexandre Abric

Friday 14 October 2005 8:09:56 am

Here is the answer : http://ez.no/products/ez_publish_cms/documentation/customization/tips_tricks/how_can_i_use_my_own_php_script_inside_ezp

Kristof Coomans

Tuesday 18 October 2005 3:45:37 am

You can create your own module in an extension.

See http://ez.no/products/ez_publish_cms/documentation/development/extensions/building_an_ez_publish_module

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Helle Andersen

Monday 24 October 2005 12:18:01 am

Is there a way in a template to include a php file from another server, such as <php include htpp://xxxxxx> (without making an i-frame)

Frederik Holljen

Monday 24 October 2005 12:35:43 am

Do you want the PHP file to be run locally on the eZp machine or do you just want to display the results of the PHP file which is run on a remote machine?

Helle Andersen

Monday 24 October 2005 12:53:32 am

The latter.
We have several php application (and perl and other applications for that matter) running on other servers and I just want to display e.g. a seach page (viewed in the eZ system but with all functionality on the other server) and the results.
See e.g. http://frontpage.cbs.dk/jobs/stil.pl (in this case however the application is written in perl). This integration is done by manually copying the design from the Ez site and including it in the perl file, but of course it would be much better just to include the results and not the design

Salvatore Guarino

Monday 24 October 2005 1:27:16 am

I would like to include a php page in the eZpublish content without copy eZpublish design in the PHP file (I don't want to remember to update this file every time that I edit something in eZpublish...). I think that the solution is only the creation of an extension...

Frederik Holljen

Monday 24 October 2005 1:29:53 am

You could simply write an operator that fetches an URL and outputs it into a template. Of course you would need to either:
- change the output of the original site so it doesn't contain HTML and BODY tags.
- make the operator strip tags that you don't want
- display the page in an iframe

Salvatore Guarino

Monday 24 October 2005 1:47:38 am

Thank you Frederik, it works!

Bye,

Salvatore

Jianjun Hu

Saturday 07 July 2007 8:25:01 pm

To be very useful.
Thanks!

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?