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? Quote Link to comment 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, ?? Quote Link to comment 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 ? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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] Quote Link to comment 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... ? Quote Link to comment 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? Quote Link to comment 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" Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment 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. Quote Link to comment 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.