PDA

View Full Version : PHP : Parsing Contents of a String



Logan
29 Nov 2005, 03:00 PM
Hello, I'm new to this forum and most importantly, new to php.

I am trying to :
1) Query a number of blogpages( of the same host www.xanga.com )
2) Extract its first page entries ( text only )
3) Output it into a format I desire on a page so I can keep track of the entries I would be interested in ( remove the need to travel to all different blogpages )



I hope my steps are quite meaningful.
I have just read some tutorials and got the whole HTML of the page through file_get_contents as a form of a string.

But it seems to look different from the original in some sense that some scripts seem not working ( background ).


Furthermore, I'd like to extract only the text entries and output them. How may I do it in PHP? It will help a lot if there is detailed advice as I'm quite new. Thanks all!