Forum Moderators: coopster
I'm getting
Parse error: parse error, unexpected T_STRING, expecting '(' in /usr/www/users/wildsite/ecodating/datread3.php on line 13
Here is the program Any ideas why it does not work?
<html>
<head>
<title> results </title>
<body>
<?php
$filename ="findata.txt";
$myFile = fopen($filename, "r");
$fcontents = file($filename);
while (list ($line_num, $line) = each ($fcontents))
{
echo $line."<br>\n";
$pattern ="/END0£/";
if preg_match ("/END0£/",$line)
{
echo "DO work":
}
}
fclose($myFile);
?>
</body>
</html>
Jordan