open(FH, "</usr/www/domain/faq.txt"); # < for read, > for write, >> for append
local $/ = undef; # slurp mode (allow for shoving the whole file into a scalar)
my $faq = <FH>;  # slurp the whole file into this scalar.
close(FH);



----- Original Message ----- 
From: "Kyle Babich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 30, 2002 3:27 PM
Subject: Including External Pages


What would I use to include external pages in my script?  (like if I wanted
to print the contents of faq.txt or log.cgi in my script)

Is there a way to do the above except to include a php script instead of a
txt file and have both the cgi and php function correctly?

Thank you,
Kyle


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to