CGI Scripts

Author Message

Brett Slaght

Monday 07 June 2004 6:12:49 am

I have a CGI Phone Directory Script written in Perl that I would love to be able to execute inside ezpub, but I do not see a way of running outside code in 3.4 of ezpub. Currently my site is running on ezp 2.2.9 and I would love move onto 3.4, but I need to be able to run this code. Currently it is running through a crude hack using the 2.2.x "static" option through sitemanager. I created a page in sitemanager made it static and basically it pulls the script through an iframe. I know this is bad form, but I didn't know how else to do it. Can somebody show me how to make this work in 3.4??

Thanks
Brett



I love EZ 2.2.x, if only 3.x had the features of 2.2.x

Alex Jones

Wednesday 09 June 2004 7:26:41 am

Brett, you pretty well have two options. One, is to continue to use the hack you mentioned (an iframe) to present the content. Two, would be to re-write the directory using eZ publish. I recommend the second option as it will serve you well in the long run, but it may take a good bit of time if your application is feature-rich or complicated.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Brett Slaght

Wednesday 09 June 2004 7:59:16 am

I have made a new section for the script and am using pagelayout.tpl override which contains an iframe to pull the script. Seems to work for now. Thanks anyways.



I love EZ 2.2.x, if only 3.x had the features of 2.2.x

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 31 2025 06:24:44
Script start
Timing: Jan 31 2025 06:24:44
Module start 'layout'
Timing: Jan 31 2025 06:24:44
Module start 'content'
Timing: Jan 31 2025 06:24:44
Module end 'content'
Timing: Jan 31 2025 06:24:44
Script end

Main resources:

Total runtime0.0122 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.0046 588.0000151.1953
Module start 'layout' 0.00460.0021 739.195336.6016
Module start 'content' 0.00670.0043 775.796990.0781
Module end 'content' 0.01100.0013 865.875033.9922
Script end 0.0122  899.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.7042140.0002
Check MTime0.00108.0868140.0001
Mysql Total
Database connection0.00076.018910.0007
Mysqli_queries0.001814.906030.0006
Looping result0.00000.089610.0000
Template Total0.00097.710.0009
Template load0.00075.732610.0007
Template processing0.00021.886910.0002
Override
Cache load0.00054.237210.0005
General
dbfile0.00021.760380.0000
String conversion0.00000.060440.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