Location: PHPKode > scripts > Grab URL > grab-url/manual.html
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="doc_files/filelist.xml">
<title>grabURL Doc</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>Vedanta Barooah</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>Vedanta Barooah</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>20</o:TotalTime>
  <o:Created>2004-10-04T09:18:00Z</o:Created>
  <o:LastSaved>2004-10-04T09:18:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>188</o:Words>
  <o:Characters>1077</o:Characters>
  <o:Lines>8</o:Lines>
  <o:Paragraphs>2</o:Paragraphs>
  <o:CharactersWithSpaces>1263</o:CharactersWithSpaces>
  <o:Version>11.5606</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:145517966;
	mso-list-type:hybrid;
	mso-list-template-ids:1232117640 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-tab-stop:.25in;
	mso-level-number-position:left;
	margin-left:.25in;
	text-indent:-.25in;}
@list l1
	{mso-list-id:741100193;
	mso-list-type:hybrid;
	mso-list-template-ids:-1736677062 67698691 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:.25in;
	mso-level-number-position:left;
	margin-left:.25in;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l2
	{mso-list-id:789935663;
	mso-list-template-ids:67698717;}
@list l2:level1
	{mso-level-text:"%1\)";
	mso-level-tab-stop:.25in;
	mso-level-number-position:left;
	margin-left:.25in;
	text-indent:-.25in;}
@list l2:level2
	{mso-level-number-format:alpha-lower;
	mso-level-text:"%2\)";
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	margin-left:.5in;
	text-indent:-.25in;}
@list l2:level3
	{mso-level-number-format:roman-lower;
	mso-level-text:"%3\)";
	mso-level-tab-stop:.75in;
	mso-level-number-position:left;
	margin-left:.75in;
	text-indent:-.25in;}
@list l2:level4
	{mso-level-text:"\(%4\)";
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	margin-left:1.0in;
	text-indent:-.25in;}
@list l2:level5
	{mso-level-number-format:alpha-lower;
	mso-level-text:"\(%5\)";
	mso-level-tab-stop:1.25in;
	mso-level-number-position:left;
	margin-left:1.25in;
	text-indent:-.25in;}
@list l2:level6
	{mso-level-number-format:roman-lower;
	mso-level-text:"\(%6\)";
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	margin-left:1.5in;
	text-indent:-.25in;}
@list l2:level7
	{mso-level-tab-stop:1.75in;
	mso-level-number-position:left;
	margin-left:1.75in;
	text-indent:-.25in;}
@list l2:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	margin-left:2.0in;
	text-indent:-.25in;}
@list l2:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:2.25in;
	mso-level-number-position:left;
	margin-left:2.25in;
	text-indent:-.25in;}
@list l3
	{mso-list-id:824123784;
	mso-list-type:hybrid;
	mso-list-template-ids:1293952858 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l3:level1
	{mso-level-tab-stop:.25in;
	mso-level-number-position:left;
	margin-left:.25in;
	text-indent:-.25in;}
@list l4
	{mso-list-id:1128088498;
	mso-list-type:hybrid;
	mso-list-template-ids:-1833427920 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l4:level1
	{mso-level-tab-stop:.25in;
	mso-level-number-position:left;
	margin-left:.25in;
	text-indent:-.25in;}
@list l4:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:.75in;
	mso-level-number-position:left;
	margin-left:.75in;
	text-indent:-.25in;}
@list l5
	{mso-list-id:1779249699;
	mso-list-type:hybrid;
	mso-list-template-ids:1916057668 939803222 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l5:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0A8;
	mso-level-tab-stop:.25in;
	mso-level-number-position:left;
	margin-left:.25in;
	text-indent:-.25in;
	font-family:Wingdings;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span class=SpellE><span class=GramE><b style='mso-bidi-font-weight:
normal'><u>grabURL</u></b></span></span><b style='mso-bidi-font-weight:normal'><u>
usage<o:p></o:p></u></b></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>There are two uses of the <span class=SpellE>grabURL</span>
class.</p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo3;
tab-stops:list .25in'><![if !supportLists]><span style='font-family:"Courier New";
mso-fareast-font-family:"Courier New"'><span style='mso-list:Ignore'>o<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]>Grab
an URL and send it to an email address</p>

<p class=MsoNormal style='margin-left:.25in;text-indent:-.25in;mso-list:l1 level1 lfo3;
tab-stops:list .25in'><![if !supportLists]><span style='font-family:"Courier New";
mso-fareast-font-family:"Courier New"'><span style='mso-list:Ignore'>o<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]>Grab
an URL and mirror it in your site</p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><u>Grab an email and send it to an email address<o:p></o:p></u></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Consider the following code:</p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<pre style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;
tab-stops:list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>&lt;?<o:p></o:p></span></pre><pre style='margin-left:.25in;
text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>// this script will grab yahoo.com and send it in your mailbox<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>include(&quot;<span class=SpellE>grabUrl.php</span>&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>=new <span class=SpellE>grabUrl</span>();<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE>createTo</span>(&quot;hide@address.com&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE>createCC</span>(&quot;hide@address.com&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>7.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE>createBCC</span>(&quot;hide@address.com&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>8.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE>createFrom</span>(&quot;Fred Dust&quot;,&quot;hide@address.com&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>9.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE><span
class=GramE>createSubject</span></span><span class=GramE>(</span>&quot;This is a test mail! Please Ignore!&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>10.</span></span><![endif]><span style='color:black'>$<span
class=SpellE>foo</span>-&gt;<span class=SpellE>getData</span>(&quot;http://www.yahoo.com&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>11.</span></span><![endif]><span style='color:black'>if($<span
class=SpellE>foo</span>-&gt;<span class=SpellE>sendMail</span>()){<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>12.</span></span><![endif]><span class=GramE><span
style='color:black'>echo</span></span><span style='color:black'> &quot;Mail Sent!&quot;;<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>13.</span></span><![endif]><span style='color:black'>}else{<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>14.</span></span><![endif]><span class=GramE><span
style='color:black'>echo</span></span><span style='color:black'> &quot;Error Sending Mail!&quot;;<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>15.</span></span><![endif]><span style='color:black'>}<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l3 level1 lfo5;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>16.</span></span><![endif]><span style='color:black'>?&gt;<o:p></o:p></span></pre>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Line 3: Includes the main class file</p>

<p class=MsoNormal>Line 4: Makes an instance of the class</p>

<p class=MsoNormal>Line 5: Sets the mail <span class=GramE>To</span> field</p>

<p class=MsoNormal>Line 6: Sets the mail Cc field (optional)</p>

<p class=MsoNormal>Line 7: Sets the mail Bcc filed (optional)</p>

<p class=MsoNormal>Line 8: Sets the mail <span class=GramE>From</span> field</p>

<p class=MsoNormal>Line 9: Sets the mail Subject</p>

<p class=MsoNormal>Line 10: Reads the data from the URL (always prefix http:/<span
class=GramE>/ )</span></p>

<p class=MsoNormal>Line 11: Sends the mail</p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><u>Grab an URL and mirror it in your site<o:p></o:p></u></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<pre style='margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo6;
tab-stops:list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>&lt;?<o:p></o:p></span></pre><pre style='margin-left:.25in;
text-indent:-.25in;mso-list:l0 level1 lfo6;tab-stops:list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>include(&quot;<span class=SpellE>grabUrl.php</span>&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo6;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>=new <span class=SpellE>grabUrl</span>();<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo6;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE>getData</span>(&quot;http://www.yahoo.com&quot;);<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo6;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>$<span class=SpellE>foo</span>-&gt;<span class=SpellE>showPage</span>();<o:p></o:p></span></pre><pre
style='margin-left:.25in;text-indent:-.25in;mso-list:l0 level1 lfo6;tab-stops:
list .25in left 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><![if !supportLists]><span
style='mso-fareast-font-family:"Courier New";color:black'><span
style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span
style='color:black'>?&gt;<o:p></o:p></span></pre>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Line 3: Make an object of the class</p>

<p class=MsoNormal>Line 4: Reads the data from the URL (always prefix http:/<span
class=GramE>/ )</span></p>

<p class=MsoNormal>Line 5: Display the page </p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>
Return current item: Grab URL