ill look into that
But, i think i can get it done. The only problem i am having is very strange...
i'm doing
$fp = fopen("http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=superior","r");
$second =0;
while(!feof($fp))
{
$string= nl2br(htmlentities(fgets($fp,1024)));
(using the word superior as an example)
Anyways, if I do a
print $string;
It prints the correct html code (like <html> <head> etc etc)
but if i search it for something with
strstr($string, "<html>");
its false, because its not there. So i was wondering whats wrong with it, so I decided to output it to a file.
When I did, it wasnt giving me the html code, but rather other ways of printing it.
such as -
<b>1</b> <b>:</b> situated higher up <b>: <a href="dictionary?book=Dictionary&va=upper"><font size="-1">UPPER</font></a></b><br><b>2</b> <b>:</b> of higher rank, quality, or importance<br><b>3</b> <b>:</b> courageously or serenely indifferent (as to something painful or disheartening)<br><b>4 a</b> <b>:</b> greater in quantity or numbers &lt;escaped by <i>superior</i> speed&gt; <b>b</b> <b>:</b> excellent of its kind <b>: <a href="dictionary?book=Dictionary&va=better"><font size="-1">BETTER</font></a></b> &lt;her <i>superior</i> memory&gt;<br><b>5</b> <b>:</b> being a <a href="dictionary?book=Dictionary&va=superscript">superscript</a><br><b>6 a<
If anyone knows how to stop it from giving it to me that way, and give it to me in real html with the < and > signs instead of & l t; or & r t; , that would help.