title: Getting data from an external webpage
body: <p>What's the best way to get content from an external website via php? </p>
  
  <p>Using php how do I go to webpage (ex: <a href="http://store.domain.com/1/" rel="nofollow">http://store.domain.com/1/</a>) and scan the HTML coding for data that is found in between   (which is the letter C and E). what php method do I use? </p>
  
  <pre><code>&lt;span id="ctl00_ContentPlaceHolder1_phstats1_pname"&gt;C&lt;/span&gt;
  &lt;span id="ctl00_ContentPlaceHolder1_phstats2_pname"&gt;E&lt;/span&gt;
  </code></pre>
  
  <p>then save "C" (the found string) to $pname</p>
  
  <pre><code>$_session['pname1'] = $pname1;
  $_session['pname2'] = $pname2;
  </code></pre>