Amakki Posted November 25, 2010 Share Posted November 25, 2010 Hello There , I want to download a file from the server to the computer . How can i do this ?? i found out this code: header("Content-type: image/jpg"); header("Content-Disposition: attachment; filename=test.jpg"); the problem is , what i get is the file that the code was executed from saved in the .jpg format. how can i direct to a specified path to select a certain file then download it . example let's say i have a folder that contains 2 files: download.php and image.jpg how can i download the image.jpg from the server with the Save As window?? Thank You Link to comment https://forums.phpfreaks.com/topic/219814-need-help-with-downloading-a-file-from-the-server/ Share on other sites More sharing options...
Amakki Posted November 26, 2010 Author Share Posted November 26, 2010 Hello , Please anyone help , how can i download a specified path from the server into the my local drive ?? Any tips?? Thank s Link to comment https://forums.phpfreaks.com/topic/219814-need-help-with-downloading-a-file-from-the-server/#findComment-1139722 Share on other sites More sharing options...
Amakki Posted November 26, 2010 Author Share Posted November 26, 2010 BUMP!!! Link to comment https://forums.phpfreaks.com/topic/219814-need-help-with-downloading-a-file-from-the-server/#findComment-1139853 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.