By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,048 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

PHP command to query a URL

P: n/a
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.
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
pe***@phparch.com

php|architect
The Magazine for PHP Professionals
http://www.phparch.com
"michela rossi" <mi*************@hotmail.com> wrote in message
news:1e**************************@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.


Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.