I want to upload a file on my PHP server. I am currently able to upload it on server using the following code but I don't know how I can store it on the server. How can I store the file in a specific directory?
I also want the users to be able to download the files but only once they log in not before that.
For example i store the file in directory /myfiles no-one must be able to download it unless he is logged in
e.g. someone can download the file if he knows the file location like www.example.com/temp/myfile.txt
I don't want that - user must not be able to download it unless he is logged in.Ben indirme bağlantısı olacak B.php hangi bir sayfa var. Kullanıcı bu linke tıkladığında o dosyayı indirmek gerekir. O benim linki tıkladığında Kısacası, o bir Save as/Open tarayıcı açılır almak gerekir. Bunu nasıl yapabilirim?