Hi again,
Does anybody know why I get this error message:
[QUOTE]
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/content/f/l/f/flfaccountmngr/html/crew/login.php on line 21
for this code:
[CODE]
$template = fopen(“template.txt”, “r”);
while(!feof($template))
{
echo fgetc($template);
line 21—> if(preg_match(“main”, fgetc($template)))
{
echo “test”;
}
}
fclose($template);
I originally wanted to have it as “id=”main”” and got the same message. And if I use strpos instead of preg_match it just prints “test” on every line in the oddest of places so that I get a load of junk spitted back at me????
I’ve also tried single quotes and single quotes with backslashes (‘/main/’)
Any ideas?
Thanks,
Douglas