ah ehmada?බකුනා;15051500 said:na machan URL eken nemei ganna ona. code eke variable ekak thiyanawa. eke thamai link eka thiyenne. eken ID eka wen karala ganna ona
ehenam machan suvin kiyapu method eka hari
ah ehmada?බකුනා;15051500 said:na machan URL eken nemei ganna ona. code eke variable ekak thiyanawa. eke thamai link eka thiyenne. eken ID eka wen karala ganna ona
$url = 'http://example.com/?download=1&foo=bar';
$url_query = parse_url($url, PHP_URL_QUERY);
if ($url_query) {
parse_str($url_query, $params);
}
if (isset($params['download'])) {
$download_id = $params['download'];
print $download_id;
}
Get the download ID from URL:
explode() karanna epa machan. ethanadi correct parameters ganna baha. parse_str use karanna.PHP:$url = 'http://example.com/?download=1&foo=bar'; $url_query = parse_url($url, PHP_URL_QUERY); if ($url_query) { parse_str($url_query, $params); } if (isset($params['download'])) { $download_id = $params['download']; print $download_id; }
Second ekata reply eka one tharam net eken hoyaganna puluwan machan.
file type detect karala headers yawanna hari widihata. eeta passe readfile() walin puluwan data browser ekata send karanna.


You can set the header type of the file and read the file and output it with PHP. So browser will download the file.
Please follow below links:
http://www.kavoir.com/2009/05/php-hide-the-real-file-url-and-provide-download-via-a-php-script.html
http://motov.net/php/php-hiding-a-files-real-path-when-downloading-prevent-hotlinking
http://www.dallasjclark.com/hide-the-paths-to-files-on-your-server-with-php/