Question Answer Forum

$_get without foo in PHP Server Side Scripting Language?

Asked By: Banhi Gandhi

Available Answer(s): 1

Answers


Varunavi Dutta
Veterinary Assistant

ANSWER # 1 #

You could use $_SERVER['request_uri'] which would allow you to omit the ? completely, leaving you with URLs like example.com/download.php/file.exe

Then, with a bit of URL rewriting (or implementing a bootstrap controller) you could clean it up even more, resulting in example.com/download/file.exe

Source: www.w3schools.com


Is it a good answer? [9]

Want to query,suggest or complain to the author!
Want to post an answer?