This is a discussion on PHP command to query a URL within the PHP Language forums, part of the PHP Programming Forums category; Hi, Does anyone know of a command in PHP (version 4.2.3) that can pull back the contents from ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Does anyone know of a command in PHP (version 4.2.3) that can pull back the contents from a URL? E.g. <?php $remote_HTML = ServerSideGetURL("http://www.noddy.com/"); ?> Is there anything like this? Anyone know? Many thanks, Michela. |
|
|||
|
Check out the curl extension (http://php.net/curl). You can also use file
wrappers; for instance, $content = file_get_contents($url); HTH, Pete. -- -- Peter James Editor-in-Chief, php|architect Magazine petej@phparch.com php|architect The Magazine for PHP Professionals http://www.phparch.com "michela rossi" <michela_rossi66@hotmail.com> wrote in message news:1ed550fd.0308120900.61edbfb5@posting.google.c om... > Hi, > > Does anyone know of a command in PHP (version 4.2.3) that can pull > back the contents from a URL? E.g. > > <?php > $remote_HTML = ServerSideGetURL("http://www.noddy.com/"); > ?> > > Is there anything like this? Anyone know? > Many thanks, Michela. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|