Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 18th, 2000, 02:29 PM
ironlung_sw ironlung_sw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 17 ironlung_sw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is there any way to include other files in a cgi script? My aim is to have an SSI statement that executes properly when outputted from withtin a cgi script. Is this possible, or do i have to manually open and output the file's contents?

Also, is it possible to call another cgi script from within a cgi script? Thanks, and i apoligise for this being entirely about cgi and not perl

Reply With Quote
  #2  
Old September 19th, 2000, 10:00 AM
JSchoof JSchoof is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 82 JSchoof User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 46 sec
Reputation Power: 8

In my experience with Apache, you can not output Server Side Includes from a CGI. That is to say that you CAN spit the text out, but they will appear simply as comments.

> Also, is it possible to call another cgi script from within a cgi script?

That depends. If you want to access some function or sub, you can break it out into a "whatever.pl" file, then just do:

require "./whatever.pl"

in both the programs to access that sub. If you catually want to trigger another script to execute, you can use backticks. I dunno if STDOUT gets bunged up in CGI context when you do that, though.

Good luck.



Reply With Quote
  #3  
Old September 19th, 2000, 02:58 PM
ironlung_sw ironlung_sw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 17 ironlung_sw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks JSchoof

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Substitute for php's require - CGI


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway