Hello,
I want to read lines from a file between !--begin-- And !--End--
Can someon help me.
Walter
On Mon, Mar 26, 2001 at 12:38:38PM +0200, [EMAIL PROTECTED] wrote:
don't know why this is on php-db
I want to read lines from a file between !--begin-- And !--End--
read the file line by line, match every line with a regexp.
If you hit the line !--begin-- start stuffing the lines in
Message -
From: Ben Cairns [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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 B