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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Amakki Posted November 26, 2010 Author Share Posted November 26, 2010 BUMP!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.