开发者

Fatal error: Can't use function return value in write context

When I did the following php code, it gives me an error on line 2:

Fatal error: Can't use function return value in write context

Please help, thanks!

here is my code:

1. include_once 'functions.php';
2. if (isset($_GET('view'))) {
3.   if (!isset($_SESSION['uniid'])) {
开发者_StackOverflow中文版4.     die("<h1>sorry, no access!</h1>");
5.     $login = false;
6.   }
7.   $login = true;
8. }


There's a typo bug:

if(isset($_GET('view'))){

should be

if(isset($_GET['view'])){  // square brackets!
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜