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!
Hello,
I am able to browse a directory on a web server and view the file list. This includes the php files, etc. on the server. When I try to download the php files from the directory they save as 0kb .html files.
I have tried "saving file" through IE6 and Firefox with no luck. Firecfox says it is downloading the file and then it disappears from the saved location, and IE6 saves it as a 0kb .html file.
Are there any applications/tools/fixes that are available for me to copy the .php files that I need?
BMN wrote:The files are on a remote server. Not my server. I do not have root access or FTP access to the server.
Why can I view the files but not download them?
when you say you are able to view...you are viewing the generated HTML file from the PHP file .... is not it?
You cannot have access to server side scripts unless it is your script...even if it is your script...you can download the code by only means of FTP or any user interface given by the host.
because the server is parsing the file when you download it..
think about it, if we could simply download the raw file, then you could steal anyones source code
Jcart wrote:because the server is parsing the file when you download it..
think about it, if we could simply download the raw file, then you could steal anyones source code
think about the sensitive db information that might be stored in it...it is kinda inherent security to server side files...