RE: [PHPLIB] Doing HTTP-GET's with PHP From: Florian Gnägi (gnaegi <email protected>)
Date: 12/15/99

yes, it wokred, but you can't parse the content to get only some special
features of a requested page. for example you probably don't want to
include a second <html> tag. it also won't work if the page contains any
relative urls...

with fopen on the other hand it's up to you which part of the fetched file
you wan't to include.

cheers...

-flo

btw: lynx offers some nice features for more complex site-fetching like
ssl, proxy authentification, redirects and last but not least: post
headers... yes, fancy stuff is possible, imagine ....

On Wed, 15 Dec 1999, Allen Lee wrote:

> wont include("http://bla.com/page.html"); work as well?
>
> > -----Original Message-----
> > From: Florian Gnägi [mailto:gnaegi <email protected>]
> > Sent: Wednesday, December 15, 1999 11:45 AM
> > To: Aaron Turner
> > Cc: PHP Lib
> > Subject: Re: [PHPLIB] Doing HTTP-GET's with PHP
> >
> >
> > hi
> >
> > try the fopen() function of php. however, i experienced
> > stange problems
> > with fopen() and php4. it should work well with php3..
> >
> > have fun
> >
> > -florian
> >
> > On Wed, 15 Dec 1999, Aaron Turner wrote:
> >
> > >
> > > Sorry if this is off topic, but I'm trying to figure out
> > how (or if it's
> > > possible) to do a http-get in PHP. Basically I wan't to
> > source another
> > > page through the web server daemon and insert it into a PHP page.
> > >
> > > Thanks.
> > >
> > > --
> > > Aaron Turner, Core Developer
> > http://vodka.linuxkb.org/~aturner/
> > > Linux Knowledge Base
> > Organization http://linuxkb.org/
> > > Because world domination requires quality open documentation.
> > > aka: aturner <email protected>, aturner <email protected>,
> > ion_beam_head <email protected>
> > >
> > > -
> > > PHP3 Base Library Mailing List. Send messages to
> > <phplib <email protected>>.
> > > To unsubscribe, send "unsubscribe" to
> > <phplib-request <email protected>> in
> > > the body, not the subject, of your message.
> > >
> >
> > -
> > PHP3 Base Library Mailing List. Send messages to
> > <phplib <email protected>>.
> > To unsubscribe, send "unsubscribe" to
> > <phplib-request <email protected>> in
> > the body, not the subject, of your message.
> >
>

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.