Download file with php from url

I am trying to download a .php file from a website because I want the script that he is using and I can't find it anywhere else. Is there any software / tools / methods to download an actual PHP file? Also need a similar method for ASP files, any ideas?

Hello, I have a .php file that I want my website visitors to be able to download. (It's an //grab stuff from url $filename = "http://www.domain.com/vcards/".

echo "Click to download";. Clicking the link gives errors, I tried I had included this in the the block's lip.php file but obviously I'm doing 

Feb 21, 2018 Send AJAX Request and download file All rights reserved | This template is made with by Colorlib