|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 ? |
|
#2
|
|||
|
|||
|
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> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Includes in PERL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|