newb Posted September 1, 2006 Share Posted September 1, 2006 [code]<?phpif ((in_array("$action", $pages)) && (!file_exists($cppath)) {echo 'page being worked on';}?>[/code]Error:[quote]Parse error: syntax error, unexpected '{' in /xx/index.php on line 21[/quote]why does it give me parse error. Link to comment https://forums.phpfreaks.com/topic/19391-parse-error-syntax-error-unexpected-in/ Share on other sites More sharing options...
.josh Posted September 1, 2006 Share Posted September 1, 2006 because you don't have enough closing parentheses ) if ((in_array("$action", $pages)) && (!file_exists($cppath))[b][color=red])[/color][/b] { Link to comment https://forums.phpfreaks.com/topic/19391-parse-error-syntax-error-unexpected-in/#findComment-84146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.