CincoPistolero Posted November 6, 2007 Share Posted November 6, 2007 Hello. I have a website that uses user authentication. The login does a post back to itself to check set usernames and passwords. <?php echo $_SERVER['PHP_SELF']?> sample url: .../admin/login/index.php This is working on a linux box where the end of the php code sends the page off to a ccc.php page for access checking. So after logging in on the index.php page, you eventually get returned to admin/ccc.php. I reused the same code on a windows box and the .../admin/login/index.php takes me to .../admin/login/index.php/admin/login/index.php does anyone have a clue as to what might cause this? ??? Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 6, 2007 Share Posted November 6, 2007 You might have a php.ini discrepancy between the servers. Save the following file as phpinfo.php <?php phpinfo() ?> Upload to the root of each server and call it. Check the PHP Variables section and at the top of that section, quote us what it says for PHP_SELF. PhREEEk Quote Link to comment Share on other sites More sharing options...
CincoPistolero Posted November 6, 2007 Author Share Posted November 6, 2007 on the bad server it says: index.php/index.php Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 6, 2007 Share Posted November 6, 2007 yah, that's no good... it should report /index.php Post up the php.ini if you would (from the bad server)... PhREEEk Quote Link to comment Share on other sites More sharing options...
CincoPistolero Posted November 6, 2007 Author Share Posted November 6, 2007 I attached the .ini as a .txt [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 6, 2007 Share Posted November 6, 2007 Only thing I can see: remove comment from ; cgi.fix_pathinfo=1 to cgi.fix_pathinfo=1 Rerun phpinfo, see if it fixed it. If not, set that variable back - that wasn't it... PhREEEk Quote Link to comment Share on other sites More sharing options...
CincoPistolero Posted November 6, 2007 Author Share Posted November 6, 2007 nope, that didn't fix it. And I don't have access to the one on the linux box. Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted November 6, 2007 Share Posted November 6, 2007 I'm checking out for the night, so good luck if that doesn't get it... take care PhREEEk 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.