I copied and pasted exactly what you have there and it downloaded a copy of the cnn page into `so.txt'. As steve suggested, does the `wget' command work from the command line? That'd be the first thing to check.
I take it this will only grab text files and place each line into an array.
Can wget be used in PHP, the reason i ask is I run a top 40 charts, one of my radio associates has a link to my site, but we want to develope it so they can have like a notice on their site with details of the tunes as they change position, like a news buletin.
They asked me if i could supply an RSS feed (what ever that is) and I'm trying to understand possible ways to create an information file that they can use for this purpose.
It seems possible that I could create a text file with the current details and they could use wget to obtain the file.
Or can someone point me in the right direction on this RSS thing or if my idea is possible using wget, but their site is written in PHP so the wget function needs to work in PHP if I go down this route.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.