PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi guys,
I am creating a portal which is used by users to upload and download different files. I want when a user upload for example .php file and another user tries to download it a download message to be displayed as if they were downloading an .exe file. I know that this can be accomplished while the upload is being done but I need it to start when a download has been initiated. I would appreciate any kind of help witha nother problemn. I want to enable users to download a page they are browsing without file->save/save as procedure. I have tried a JavaScript but it works only with IE.
You can't do both at once without control over where php is saving the files. Provide a link or something that requests the page again, but triggered to force the download.
I do not mean saving simulaniously. I will try to explain clearer. A user clicks on a button and then a window pops up and ask them to save the page but I do not mean only the source but all, images, flashes, and csses. The same as if you want to save a page from File->Save/Save As.