PHP command to query a URL

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
michela rossi
 
Posts: n/a
Default PHP command to query a URL

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.
Reply With Quote
  #2 (permalink)  
Old 08-12-2003
Peter James
 
Posts: n/a
Default Re: PHP command to query a URL

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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0