carlg Posted October 12, 2007 Share Posted October 12, 2007 I have a global variable that stores the userid of logged in user. looks something like this global $id; I have test server at my house. Code works perfectly fine. I just rented space on a VPS (Virtual private server). Exact same code, but it does not work. The value of the global variable is not being retained as it should. Where should I look first? Thanks Carl Quote Link to comment https://forums.phpfreaks.com/topic/72876-global-variable-help/ Share on other sites More sharing options...
kenrbnsn Posted October 12, 2007 Share Posted October 12, 2007 Please post the code in question. Ken Quote Link to comment https://forums.phpfreaks.com/topic/72876-global-variable-help/#findComment-367580 Share on other sites More sharing options...
carlg Posted October 12, 2007 Author Share Posted October 12, 2007 The entire program is many lines (too much to post here). Quote Link to comment https://forums.phpfreaks.com/topic/72876-global-variable-help/#findComment-367715 Share on other sites More sharing options...
kenrbnsn Posted October 12, 2007 Share Posted October 12, 2007 Then narrow it down to a short program that doesn't work and post that. Also, check the versions of PHP and Apache (or other webserver) that are running on the different platforms. Ken Quote Link to comment https://forums.phpfreaks.com/topic/72876-global-variable-help/#findComment-367725 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.