ohdang888 Posted June 19, 2008 Share Posted June 19, 2008 lets say for example the url is: http://www.phpfreaks.com/forum/index.php?test=yes the $_SERVER['QUERY_STRING'] would bring up "test=yes" is there something that would bring up "forum/index.php?test=yes"? Thanks! Link to comment https://forums.phpfreaks.com/topic/110976-solved-server-query-string/ Share on other sites More sharing options...
Stephen Posted June 19, 2008 Share Posted June 19, 2008 You could just do like: <?php $_s_name=$_SERVER["SCRIPT_NAME"]; $_s_qstring=$_SERVER["QUERY_STRING"]; echo($_s_name."".$_s_qstring); ?> Hope that works this time Link to comment https://forums.phpfreaks.com/topic/110976-solved-server-query-string/#findComment-569356 Share on other sites More sharing options...
abdfahim Posted June 19, 2008 Share Posted June 19, 2008 or only $_SERVER['REQUEST_URI']; Link to comment https://forums.phpfreaks.com/topic/110976-solved-server-query-string/#findComment-569456 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.