[PHP] Re: I can't make 'read_tag.php' file

2003-10-13 Thread Bas
This just says: Parse error: parse error, unexpected T_STRING, expecting ')' in C:\pub\read-tags.php on line 12 Manuel VáZquez Acosta [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try this: function readTag($filenane, $tagtype, $degub = false) // I prefer boolean for debug :) {

[PHP] Re: I can't make 'read_tag.php' file

2003-10-12 Thread Manuel Vázquez Acosta
Try this: function readTag($filenane, $tagtype, $degub = false) // I prefer boolean for debug :) { $filedata = file_get_contents($filename); $tagtype = preg_quote($tagtype); $tagRegExp = /battag=$tagtype\s*((?:.|\s)*?)/battag\s*/; preg_replace_callback($tagRegExp, 'replaceFunc',