How do I pull data from another website?

Hi,

First post, please bear with me. I’ll try not to act like a complete noob. :wink:

I am trying to pull some data from another web page. Here is my code:

[php]

<?php if ($chart_URL = file_get_contents("http://thad.com", r)) { } else { echo "Error4"; } ?>[/php]

And, of course, when I look at the source code of my web page in my browser I see the ‘Error4’.

Try something a little more simple…

[php]<?php
$url = ‘http://thad.com’;
$output = file_get_contents($url);
echo $output;
?>[/php]

Does this work for you?

Sponsor our Newsletter | Privacy Policy | Terms of Service