ferrins Posted March 13, 2008 Share Posted March 13, 2008 Hi everbody! I developed a web portal totally in PHP 5, and I had it running on my college server flawlessly. Now, I just hired a hosting (Dreamhost) and I have serious problems to make the code work, it seems like anything that is variable session related it just doesn't work, like the login system, calendar, captcha, etc... So, I upload one phpinfo() at every server, one in my college at the other one at Dreamhost, but I suck so bad that I don't even know where to start looking :S If anyone wanna give it a look and save my ass: College server is at: http://citmalumnes.upc.es/pfc/fcases/info.php At Dreamhost: http://www.soroll.cat/info.php Is the register_globals thing, maybe the session table? gee I'm totally lost, any tip on this I'll apreciate. Thanks for reading. Quote Link to comment https://forums.phpfreaks.com/topic/95972-issues-running-php-5-in-my-hosting/ Share on other sites More sharing options...
trq Posted March 13, 2008 Share Posted March 13, 2008 The session setups are both the same by the looks of it. Try a test script. <?php session_start(); if (!isset($_SESSION['i'])) { $_SESSION['i'] = 1; } else { $_SESSION['i']++; } echo "The value of \$_SESSION['i'] is {$_SESSION['i']}"; ?. Load this up and refresh it a few times. If the value increments, your sessions are working fine. Quote Link to comment https://forums.phpfreaks.com/topic/95972-issues-running-php-5-in-my-hosting/#findComment-491334 Share on other sites More sharing options...
PFMaBiSmAd Posted March 13, 2008 Share Posted March 13, 2008 Turning on full php error reporting would help in finding what the problem is. Also, posting your code would allow someone to immediately see what it is doing that is configuration dependent. Quote Link to comment https://forums.phpfreaks.com/topic/95972-issues-running-php-5-in-my-hosting/#findComment-491543 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.