Pull text from another website
<p>Is it possible to pull text data from another domain (not currently owned) using php? If not any other method? I've tried using Iframes, and  because my page is a mobile website things just don't look good. I'm trying to show a marine forecast for a specific area. <a href="http://forecast.weather.gov/MapClick.php?lat=29.26034686&amp;lon=-91.46038359&amp;unit=0&amp;lg=english&amp;FcstType=text&amp;TextType=1" rel="nofollow">Here</a> is the link I'm trying to display. </p>

<p>Update...........</p>

<p>This is what I ended up using. Maybe it will help someone else. However I felt there was more than one right answer to my question.  </p>

<pre><code>&lt;?php

$ch = curl_init("http://forecast.weather.gov/MapClick.php?lat=29.26034686&amp;lon=-91.46038359&amp;unit=0&amp;lg=english&amp;FcstType=text&amp;TextType=1");

curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$content = curl_exec($ch);
curl_close($ch);
echo $content;

?&gt;
</code></pre>
