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? ??? Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/ 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 Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385474 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 Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385475 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 Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385478 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] Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385482 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 Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385486 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. Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385489 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 Link to comment https://forums.phpfreaks.com/topic/76163-posting-back-to-the-same-page/#findComment-385490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.