Current location: Hot Scripts Forums » Programming Languages » Perl » Include Problem


Include Problem

Reply
  #1 (permalink)  
Old 12-31-03, 06:05 AM
DAL's Avatar
DAL DAL is offline
Code Master
 
Join Date: Jun 2003
Location: North East England/UK
Posts: 874
Thanks: 0
Thanked 0 Times in 0 Posts
Include Problem

I posted a similar problem back in june/july for a query on SSI. Got that working and it worked well! Problem is now that that Im working on a different server and I can't use SSI


I asked my m8 about it who uses php and he suggested a
<?php
inlcude=("pagename.html");
?>

which works brilliantly! Problem is tho that Im a perl guy! Whats php eh?

Is there a similar method to calling in pages with perl?
There is only two types of pages that Ill be calling in and these would be .pl & .html

I read somewhere from a link on here that the require method might work although that is more to do with executing code and getting results to <i>require</i>

I just want the whole file called in and if their is any pl needed to be executed it would be done the normal page (behind it)

can anyone suggest an equal to php's include?
__________________
"once upon a midnight dreary, while i pron surfed, weak and weary, over many a strange and spurious site of 'hot xxx galore'. While i clicked my fav'rite bookmark, suddenly there came a warning, and my heart was filled with mourning, mourning for my dear amour," 'Tis not possible!", i muttered, "give me back my free hardcore!" quoth the server, 404."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 12-31-03, 08:45 AM
blasto333 blasto333 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
pretty close to perl

include ("pagename.html");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 12-31-03, 09:57 AM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
The only thing that will do this is Embperl but if they don't have SSI set up I really doubt that they will have Embperl set up. Your best bet is to use PHP like your m8 suggested. Look into the system, include, and virtual commands:

system: http://us4.php.net/manual/en/function.system.php
include: http://us3.php.net/manual/en/function.include.php
virtual: http://us3.php.net/manual/en/function.virtual.php

The virtual command is probably the one you want.

~Charlie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-20-04, 08:45 AM
darkmonkey's Avatar
darkmonkey darkmonkey is offline
New Member
 
Join Date: Nov 2004
Location: London, United Kingdom
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Perl..:

Code:
use LWP::Simple;
$page = get("pagename.html");
print $page;
Isn't that easier?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I include external script jimpy ASP 3 05-24-04 07:39 AM
Small problem for a pro, but for novice like me... argh! ntek Perl 3 11-19-03 02:45 PM
shopping cart problem darton520 PHP 2 11-03-03 12:20 PM
problem with this script Ken ASP 1 10-22-03 11:05 AM
Include problem lapo4ka18 PHP 3 08-23-03 09:03 PM


All times are GMT -5. The time now is 08:25 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.