Dear all,
I was wondering if anyone knows how to make it so when I went to lets say... download.php?filename.zip I could make it print that file name? Basicly what is the varible for it? I know download.php?file=filename.zip or somthing would work but I was wondering what the varible ?blank was. Thanks
test.php?test
Moderator: General Moderators
-
Bennettman
- Forum Contributor
- Posts: 130
- Joined: Sat Jun 15, 2002 3:58 pm
Alternatively:
Code: Select all
<?php
$uri = explode('?', $_SERVER['REQUEST_URI']);
$file = $uri[1];
?>