Gossamer Forum
Home : Products : DBMan : Discussions :

Including Page in CGI

Quote Reply
Including Page in CGI
Hi,

I want to include a page in one of my HTML sub ruteins.. The normal SSI code of <!--#include virtual="http://mypage.com" --> does not work as you probibly know. I cannot jst copy the page and put it into my HTML as it is updae every 5 min, and I do have a life =o)... Anyways please let me know how include a file the easiest way possible.

Thanks, Chris
Quote Reply
Re: [Christop] Including Page in CGI In reply to
I hate to say this... but do a search on SSI (pay close attention to the search criteria) and you'll find many discussions regarding server side includes.

Also check out the 'Unofficial FAQ'
http://webmagic.hypermart.net/dbman/

Good Luck!
Quote Reply
Re: [Christop] Including Page in CGI In reply to
You could always use read() which is quick...

open F, "</path/to/file.html" or die $!;
read F, my $string, -s F;
close F;

Then $string contains your file.