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?

eZ debug

Timing: Jan 20 2025 15:17:04
Script start
Timing: Jan 20 2025 15:17:04
Module start 'content'
Timing: Jan 20 2025 15:17:04
Module end 'content'
Timing: Jan 20 2025 15:17:04
Script end

Main resources:

Total runtime0.2124 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.5859180.8516
Module start 'content' 0.00840.0056 768.4375105.8203
Module end 'content' 0.01400.1983 874.2578533.7109
Script end 0.2123  1,407.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.8807200.0002
Check MTime0.00160.7347200.0001
Mysql Total
Database connection0.00090.444410.0009
Mysqli_queries0.161876.15351410.0011
Looping result0.00120.55951390.0000
Template Total0.198093.210.1980
Template load0.00090.411910.0009
Template processing0.197192.768910.1971
Override
Cache load0.00060.289010.0006
Sytem overhead
Fetch class attribute can translate value0.00090.418110.0009
XML
Image XML parsing0.00030.123310.0003
General
dbfile0.00874.0974200.0004
String conversion0.00000.003330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs