luxe Posted November 21, 2007 Share Posted November 21, 2007 Hey guys, This is not the first time I've made a login before. However, I made one for a site with its own user db, and it's not working on the server. It does however work locally, and on another completely different server I tested it on. This is the server that it's working on: http://dconstruct.net/test.php And this is the server that it's NOT working on: http://arboranimalhospital.com/test.php I know that they are versions 5 and 4 respectively, and locally I'm running PHP5...but I did change it back to 4 locally, and it still worked. Im suspecting its the culprit server.....? This is the URL value its giving me on that server "http://arboranimalhospital.com/admin/index.php?accesscheck=%2Fadmin%2Findex2.php" even when I put the correct username and password that being passed in my users database. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/ Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 Hard to help you with just that info. What's not working, DB communications, Sessions, ?? Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396111 Share on other sites More sharing options...
luxe Posted November 21, 2007 Author Share Posted November 21, 2007 well, the login works locally and on a server running PHP 5--just not on this other server running 4. So I don't think there's anything wrong with the code at all. It's the server. And here's the test page for it: http://arboranimalhospital.com/test.php Is there something that needs to be turned on in the php.ini ? Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396115 Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 The test page doesn't help, post the code. Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396117 Share on other sites More sharing options...
cooldude832 Posted November 21, 2007 Share Posted November 21, 2007 Let me clear this up. How do it not work? Does your computer blow up when you try and login ? Do chickens fly through the screen? Make more sense? Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396126 Share on other sites More sharing options...
luxe Posted November 21, 2007 Author Share Posted November 21, 2007 well forgive me im a noob..... but this is what it does on the server it's not working on. 1) I login with correct username and password. 2) Instead of taking me to the correct page after logging in, it acts as if it failed and gives me this URL value http://arboranimalhospital.com/admin/index.php?accesscheck=%2Fadmin%2Findex2.php Although it works locally, and on the other server using PHP5. I've attached my code. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396136 Share on other sites More sharing options...
luxe Posted November 21, 2007 Author Share Posted November 21, 2007 i figure its a sessions "save_path" problem... ? Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396148 Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 Where does your php.ini file point to for the session save path? Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396150 Share on other sites More sharing options...
luxe Posted November 21, 2007 Author Share Posted November 21, 2007 c:\php5\sessiondata it says.... on the server its working on, the session save_path is "null" Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396166 Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 Modify it to a actual path you have access to. Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396172 Share on other sites More sharing options...
luxe Posted November 21, 2007 Author Share Posted November 21, 2007 ok i have that path...but how do i modify their php.ini file? and thanks! Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396180 Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 You'll have to check with your webhost. Mine offers me a php.ini editor. Link to comment https://forums.phpfreaks.com/topic/78274-login-working-locally-but-not-on-server/#findComment-396184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.