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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 9th, 2001, 11:29 PM
somebogan somebogan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 0 somebogan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation

I'm using PHP with my site, but I'm wanting to use Perl with it.
The perl script i wish to use, uses it's own html template file (which is a seperate file to the perl script).
I've created my own php file which i use as the template to my whole website, it contains this include statement:
<?php include ("cgi-bin/".$document.".cgi"); ?>
Instead of using the script as "cgi-bin/perlscript.cgi" i want to use this "name.php?document=perlscript".
I basically want to do it like this to save time when I decide to change the layout and look of my site by only having to modify one file.
The problem i'm having is that the browsers don't seem to recognise that it is perl and just outputs the whole perl script as html text inside the php document.
How can I get it to work properly.
I hope I've expressed my problem clearly!
Thanks in advance for any help.

Tim Burgan
burgan@iprimus.com.au

Reply With Quote
  #2  
Old March 11th, 2001, 02:38 AM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
Use virtual() instead of include(). You'll also want to put the query string after the script (within virtual) if you want to pass params to it:
Code:
<? virtual('/cgi-bin/'.$script.'.cgi?'.$QUERY_STRING); ?>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Perl and PHP


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