Related questions
How to force file download with PHP
I want to require a file to be downloaded upon the user visiting a web page with PHP. I think it has something to do with file_get_contents, but am not sure how to execute it.
$url = "http://example.…
Get the current script file name
If I have PHP script, how can I get the filename from inside that script?
Also, given the name of a script of the form jquery.js.php, how can I extract just the "jquery.js" part?