Run a PHP postback request on a page only once?
问题 I would like to know if there is an equivalent of IsPostBack in PHP. I want to call a function or a method only once, once the user is logged in. I have a facebook application, in which once the user authorizes the application it should enter his details in the database. This basic stuff should have been done using the post-authorize callback url which facebook pings when the user first authorizes the app. The issue is that since I am checking whether the user exists or not in index.php, I