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,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
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, Scouters World
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,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
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, Scouters World
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,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
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, Scouters World
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
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
0 members (), 836 guests, and 180 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)