-Original Message-
From: Dan Krumlauf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 11:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Why wont this work?
news_publish.php
***
[snip]
$templine = preg_replace(/(NEWS)(.*?)(\/NEWS)/i,\\1$news\\2,
Your line in in news_publish.php is:
while($templine=fgets($tempfile, 4096) ) {
if you want to test if $templine is equal to fgets($tempfile, 4096) then you
should use 2 equal signs. So,
while($templine==fgets($tempfile, 4096) ) {
1 equal sign sets the value of the right side to the left.
On Wed, 25 Jul 2001 01:53, Dan Krumlauf wrote:
news_publish.php
***
$templine = preg_replace(/(NEWS)(.*?)(\/NEWS)/i,\\1$news\\2,
$templine));
Parse error: parse error in /php/work/boz/news_publish.php on line 8
I think you have one too many closing brackets. May I suggest you
3 matches
Mail list logo