How can I use download.php?get=file.exe with without the get variable, like download.php?=file.exe, using the $_GET in PHP?
You can use $_GET[0] or $_REQUEST[0]
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With