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:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old May 29th, 2000, 11:38 AM
ikaros ikaros is offline
PHP Programmer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 31 ikaros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 43 sec
Reputation Power: 9
Send a message via ICQ to ikaros
Can I include a PHP file in my PERL script ?
If not so.. Can I include a HTML file ?
And ofcourse. How do I do it ?

Reply With Quote
  #2  
Old May 29th, 2000, 12:42 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
You can't. You should open and read a file instead.
############################################
#!/usr/local/bin/perl
print "Content-type: text/htmlnn";
open(HEADER,"header.html");
@lines=<HEADER>;
close(HEADER);
print "@linesn";
exit;
############################################
Or try this:
#hello.php4
<? echo "Hello World"; ?>

#test.pl
#!/usr/local/bin/perl
print "Content-type: text/htmlnn";
print "This is a test!n";
exit;

#include.html
<html>
<body>
<h1 align="center"><!--#include virtual="hello.php4"--></h1>
<p><!--#include virtual="test.pl"--></p>
</body>
</html>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Includes in PERL


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 1 hosted by Hostway