Jump to content

Archived

This topic is now archived and is closed to further replies.

newb

Parse error: syntax error, unexpected '{' in

Recommended Posts

[code]
<?php
if ((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.

Share this post


Link to post
Share on other sites
because you don't have enough closing parentheses )

if ((in_array("$action", $pages)) && (!file_exists($cppath))[b][color=red])[/color][/b] {

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.