Re: Searching and removing

From: Date: Thu, 29 Jul 2004 23:25:41 +0000
Subject: Re: Searching and removing
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-192257@lists.php.net to get a copy of this message
Justin Patrin <papercrane <at> gmail.com> writes: > Assuming there's only one table in the document.... > > preg_match('!<table[^>]*>.*</table>!i', $text, $matches); > $table = $matches[0]; Thanks! I thought that I was putting it into a variable, but poking around with the script, it actually is just pooping out all the fetched data without putting it into a variable. I can't really find documentation on some of the curl functions, and I was wondering if you could provide some insight. Here is the source: <HTML> <BODY> <?php $ch = curl_init("http://www.infinitysf.com/beta/music/subsonic/default.asp"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); #I thought I was echoing the variable here, but it shows it without this.-> echo($fp); ?> </BODY> </HTML>

« previous php.general (#192257) next »