globals php help
问题 I am trying to use a global in a file that is just used to post data to. The global is not being registered on that page. How can I get the globals accessible in that page. EDIT maybe I wasnt too clear so let me clear it up. I have these files index.php global $user; echo $user->uid; post.php global $user; echo $user->uid; now from index.php I am posting to post.php through jquery. However when I echo $user->uid from post.php it is not echoing but when I echo it from index.php it is showing