Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Trouble with string

$
0
0
Trying to replace file name with string in forced download, but get string for file name instead of contents of string


$file_dl="Event Log Cleaner.exe";

header('Content-disposition: attachment; filename=$file_dl');
header('Content-type: application/exe');
readfile('../downloads/$file_dl');



Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>