Can't use function return value in write context

后端 未结 3 998
离开以前
离开以前 2020-12-20 19:44

Ok, here is my code. What it is supposed to do is retrieve the referer that sent you to the page, the user will type someurl.com/refcreate.php?ref=username

&         


        
3条回答
  •  没有蜡笔的小新
    2020-12-20 20:31

    You're assigning a variable and not comparing it

    This refcheck($referer) = false

    Should be refcheck($referer) == false

    Also, your method should have a default return if your IF condition fails.

提交回复
热议问题