i can already the upload and download files, the thing is that i want to access the folder "uploads" because all the uploaded files are in here, the thing is that when i'm using this one, it works when the uploaded files are merged with my php files, the problem is that it's kinda messy, what i want is that a code wherein it will access the uploads folder.
just modify this one:
http://localhost/samples/php/download.php?file=(filename)
*************download.php
$file = $_GET['file'];
header ("Content-type: octet/stream");
header ("Content-disposition: attachment; filename=".$file.";");
header("Content-Length: ".filesize($file));
readfile($file);
exit;