Re: Parsing an external URL

From: Date: Fri, 03 May 2002 08:28:18 +0000
Subject: Re: Parsing an external URL
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-83642@lists.php.net to get a copy of this message
This is not the list you should be asking this kind of questions on. This list is about developing PHP itself, not about developing WITH PHP. By the way, you don't want to use readfile() here. implode("", file()) seems like the easiest solution, in combination with preg_match, probably, for the problem you are describing. Regards, Manuzhai "Miva Guy" <mivaguy@comcast.net> wrote in message news:FDEBKNEPFODOHHGGGEJECEIICLAA.mivaguy@comcast.net... > I'm in the process of rewriting a site in PHP (as I learn it) to make it > more robust. One of the functions I regularly use is calling an external > URL, parsing out the data I need and saving that data for use on my site. > (Don't worry, we've made arrangements with these companies!) > > I'm unsure which function, include(), readfile() or any other to use where I > can go through the called page and parse out what I need. > > Example, let's say I needed to get the page's title, I would need to be able > to go through the file and find an tag object, discover the tag is a <TITLE> > tag, start gathering the text object until I reach a tag object of </TITLE>. > > If there are any tutorials on the subject, can someone point me in the right > direction? > > Thanks! > Mark > mivaguy@comcast.net >

« previous php.dev (#83642) next »