Ok. I installed PHP v5 and Apache 2 on my computer. I set it up because I want to run PHP scripts on my computer. I need a bigger max upload size in my php.ini setting. So I changed it in all the php.ini files I had on my computer. I run Apache and type in my php page to see my php info and it...
Thanks for the help. I finally got it working with this code:
<?
$files=array(array (../media/FILENAME.zip', 'FILENAME.zip'),
$file=(int)$_GET['file'];
if (strtolower(substr($files[$file][0],0,7))!='http://')
{
if (!is_file($files[$file][0]))
{...
Hello, I will have multiple downloads on my site, but I do not want the full path to the download to be shown. I know you can do it with PHP but I am a noob when it comes to PHP. I want to set up the downloads like download.php?file=fileToDownload. Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.