Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
0 registered (), 31 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 88
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#168596 - 11/19/06 08:53 PM Include cgi or pl in headers, incerts, or teplates
A.J. Drew Offline
stranger
Registered: 08/14/06
Posts: 15
I want to include .cgi programs (like banners) in UBB 7.x headers, footers, templates, or the likes. I have tried many attempts, am reasonably sure I can do it in PHP, but have not been successful.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#168601 - 11/19/06 10:27 PM Re: Include cgi or pl in headers, incerts, or teplates [Re: A.J. Drew]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
You should be able to do it with a simple php include:
Code:
<?php include("http://www.yoursite.tld/cgi-bin/scriptname.php"); ?>
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#168609 - 11/20/06 05:24 AM Re: CGI Include in templates [Re: Gizmo]
A.J. Drew Offline
stranger
Registered: 08/14/06
Posts: 15
Oh if it were that easy. PHP code does not seem work from within templates and my host dissallows html calls in php for security reasons.

What I have found works just fine in a php page is a system call

system( '/usr/bin/perl some_cgi.cgi' );

But this does not work in a template. My goal is to get the .cgi program to execute and diaplay in the body of the page.
Top
#168612 - 11/20/06 05:59 AM Re: CGI Include in templates [Re: A.J. Drew]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
ahh yes, the dreaded lack of smarty knowledge on my part...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#168700 - 11/21/06 12:09 PM Re: CGI Include in templates [Re: Gizmo]
A.J. Drew Offline
stranger
Registered: 08/14/06
Posts: 15
Got it:

Executing php inside smarty:

{php}
any statement
{/php}
Top
#168719 - 11/21/06 04:59 PM Re: CGI Include in templates [Re: A.J. Drew]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
go figure it'd be something easy... I really need to find some ebooks on it when i get some time lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#168812 - 11/22/06 05:47 PM Re: CGI Include in templates [Re: Gizmo]
A.J. Drew Offline
stranger
Registered: 08/14/06
Posts: 15
Ye, now the problem is that it is php that is executing the .cgi and php does not seem able to pass variables. If you add ?whatever=whatever the thing dies.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image