I'd like to be able to load the contents of a page into a variable, but I just want the text off of the page, not all of the HTML code. In other words, I'd like the variable to reflect what lynx would see, or what you'd see if you copied the text off of the page into notepad. I want to be able to do some other stuff with the text on the page, and I don't need or want all of the HTML tags. Is this possible? This is the code I'm using thus far.
$myfile = "http://mywebsite.com/php/file.htm";
$first_page = @implode("",file($myfile));
Any help would be greatly appreciated.