php - URL encoding issue: different results between two servers -



php - URL encoding issue: different results between two servers -

i have 2 servers, both have same configurations. uploaded same code both servers.

<?php echo $_server['request_uri']; exit; ?>

when access server 1 http://server1.com/%3d

it prints /%3d

when access server 2 http://server2.com/%3d

it prints /=

what cause in different results?

is there setting can do? or anyway observe it?

try using urldecode()

<?php $server1 = '/%3d'; $server2 = '/='; print urldecode($server1); // /= print urldecode($server2); // /=

eg. print urldecode($_server['request_uri']);

example codepad here

php codeigniter urlencode

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -