hello
i want to do this: - open a website - ctrl+a, ctrl+c & ctrl+v into text file (notepad)
i know that it can be done by lynx -dump, but how to do that in php?
thanx
The file() command is capable of doing this.
// Read contents into array. $contents = file("http://www.example.com/webpage.html");
yes, the file() function will load the whole page into an array (all content with tags) but i want to save just pure text (just what i see in my browser)
Strip HTML after file() or use cURL.