Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 13
A
stranger
stranger
A Offline
Joined: Aug 2006
Posts: 13
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.

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
You should be able to do it with a simple php include:
Code
<?php include("http://www.yoursite.tld/cgi-bin/scriptname.php"); ?>


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 13
A
stranger
stranger
A Offline
Joined: Aug 2006
Posts: 13
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.

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
ahh yes, the dreaded lack of smarty knowledge on my part...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 13
A
stranger
stranger
A Offline
Joined: Aug 2006
Posts: 13
Got it:

Executing php inside smarty:

{php}
any statement
{/php}

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
go figure it'd be something easy... I really need to find some ebooks on it when i get some time lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 13
A
stranger
stranger
A Offline
Joined: Aug 2006
Posts: 13
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.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)