Re: [PHP] grabbing source of a URL

2004-12-10 Thread Darren W
tion to use to grab the page. for the string > > http://us2.php.net/manual/en/function.fopen.php > > There are some good samples on the page > >$dh = fopen("$url",'r'); >$result = fread($dh,8192); > > Hope this is what you need. >

RE: [PHP] grabbing source of a URL

2004-12-10 Thread Vail, Warren
Hope this is what you need. Warren Vail > -Original Message- > From: Adam Williams [mailto:[EMAIL PROTECTED] > Sent: Friday, December 10, 2004 9:56 AM > To: [EMAIL PROTECTED] > Subject: [PHP] grabbing source of a URL > > > Hi, I don't kno

RE: [PHP] grabbing source of a URL

2004-12-10 Thread Vail, Warren
[mailto:[EMAIL PROTECTED] > Sent: Friday, December 10, 2004 9:56 AM > To: [EMAIL PROTECTED] > Subject: [PHP] grabbing source of a URL > > > Hi, I don't know what functions to use so maybe someone can > help me out. > I want to grab a URL's source (all the code from

[PHP] grabbing source of a URL

2004-12-10 Thread Adam Williams
Hi, I don't know what functions to use so maybe someone can help me out. I want to grab a URL's source (all the code from a link) and then cut out a block of text from it, throw it away, and then show the page. For example, if I have page.html with 3 lines: hi this is line a this is line b