Hi i am wondering if php files in a website folder like this http://www.artofwarplus.com/wordpress/ can be download as a full .php files? Please let me know if its possible....
Even if you download it using a downloader you will get the HTML source only (Just like when you view the page using your browser)
Do you mean is it possible to just click on these files and have them download (ie the site is not your own and you want to download the php code?)
The webserver interprets the script on the requests. Browser -> Request -> Server -> Read Request -> Send to CGI or module -> Receive data from PHP -> Send to user So anyone who doesn't understand why, they see why.
If only instance when you may be able to read the source code of the files is when you are the server admin(admin has access to user files) or the server fails to send the file to the PHP parser and instead sends it as a text file! There may be other few rare causes too but IDK.
I wish I could download any websites .PHP files in a click, too bad it can't happen. . If you could download the .PHP files, you would need a database or a .SQL file, right? How would you get that? ~ Silverleaf
Basically you're chances are extremely slim. Why would you want to download someone else's PHP? It's better to learn rather than steal
Well everyone has said its 100% impossible to download these files...and you are all wrong...you can, you jus have to hope the server doesn't have the php installed in apache . I don't understand why people ask if you can download the php sourcecode all the time. The whole idea of the files being processed server side should give an indication that its not possible to do. Hell, the whole idea is to stop people getting the source of it. Imagine if you found someones db config file
It is impossible as long as the server runs as it should. To download the source code you have to make a different request to the server through ftp and you have to have the right access login data
Only using the FTP and with proper login username and passwords otherwise yes its impossible to do that via http request.