[thelist] Can you open a url with a cgi script?

Peter Lowe pgl at instinct.org
Tue Aug 5 21:00:22 CDT 2003


On Aug 06, Dan Romanchik wrote:
> Diane Soini" <dianesoini at earthlink.net> asks:
> > Is there a way to read the contents of a document on another server from a
> > cgi script on a server that doesn't have the LPW module installed? All the
> > examples I can find on the web use this module, but our crabby admin won't
> > install any modules.
> 
> You can do this in PHP with fopen().
> 
> Have fun!

... and file(), and file_get_contents(), and readfile(), and any other
function that opens a file - as long as the php.ini setting
fopen_wrappers is on.

:)

-- 
The Czech Republic: Home of the world's finest beer.
Litres drunk by Czechs so far this year: 975,907,065.67

 - http://prague.tv/toys/beer/


More information about the thelist mailing list