Re: Everything between something becomes an array element
| From: | Julio Nobrega Trabalhando | Date: | Tue, 06 Nov 2001 12:43:37 +0000 |
| Subject: | Re: Everything between something becomes an array element | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73585@lists.php.net to get a copy of this message | ||
Sure! Here you can find:
http://www.geocities.com/inerte2000/teste-fetch.htm
Don't mind about the <pre> or the bottom Array{}. They are there just
because of some print_r while I try to figure out how to do it.
Here's the PHP code to produce the above page:
<?php
$filename = 'http://www.stj.gov.br/stj/noticias/consulta_noticias.asp';
$fd = fopen ($filename, 'r');
$read = fread($fd, 20000);
fclose($fd);
$search = eregi("<br><br>(.*)<hr>", $read, $printing);
$printing[1] = str_replace("detalhes_noticias",
"http://www.stj.gov.br/stj/noticias/detalhes_noticias",
$printing[1]);
$var = $printing[1];
echo '<pre>';
print_r ($var);
echo '</pre>';
?>
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Kevin L" <kevin@ldigitaldesign.com> wrote in message
news:LOBBILAIIOHPPOHFKFNFIENJFFAA.kevin@ldigitaldesign.com...
> Can't find the original code you are trying to parse in a previous
message.
> Do you have a sampe of the code you are trying to parse?
>
> Kevin
>
> -----Original Message-----
> From: Julio Nobrega Trabalhando
> [mailto:inerteARROBAhotmail.com@pb1.pair.com]
> Sent: Tuesday, November 06, 2001 5:20 AM
> To: php-general@lists.php.net