Re: Read lines
| From: | info@tcp-ip.nl | Date: | Mon, 26 Mar 2001 11:11:45 +0000 |
| Subject: | Re: Read lines | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7805@lists.php.net to get a copy of this message | ||
First Thx for your response
I don't think you know wat i mean.
My brother give me a HTML file. I must place a menu from a DB but
Then i must have the folowing code
<!--begin_menu-->
<tr>
<td>menu</td>
</tr>
<!--end_menu-->
So i must read from <!--begin_menu--> till <!--end_menu-->.
----- Original Message -----
From: Ben Cairns <BenC@intasept.com>
To: <info@tcp-ip.nl>
Cc: <php-windows@lists.php.net>
Sent: Monday, March 26, 2001 12:34 PM
Subject: RE: [PHP-DB] Read lines
> HTH...
>
> <?
> $file = "YOUR URL/FILE HERE";
> $open = fopen($file, "r");
> $search = fread($open, FILE SIZE IN BYTES);
> fclose($open);
> $news[1] = str_replace("replace this, "with this", $grabbed[1]);
> ?>
>
> <?
> echo $grabbed[1]
> ?>
>
> -- Ben Cairns - Head Of Technical Operations
> intasept.COM
> Tel: 01332 365333
> Fax: 01332 346010
> E-Mail: BenC@intasept.com
> Web: http://www.intasept.com
>
> "MAKING sense of
> the INFORMATION
> TECHNOLOGY age
> @ WORK......"
>
>