(index.php), but whenever I try my web browser turns the file into an [I]htm[/I] file, I don't want the [I]htm[/I] file I want the actual [I]php[/I] file, Can anyone help me:confused:
Thanks, Holiday.
Where are you trying to download it from? Are you able to right click on the PHP link and click 'save target as"? Or if you have the web address of the PHP file, use a program like GetRight and download it via that.
"PHP is parsed server side meaning before it leaves the web server,
therefore you cannot view the source on a properly set up web server,
unless it is defined as a phps Source file, IE only if the source is
meant to be viewed. This is barring some sort of a security exploit of
course."
Help? I'm assuiming that because it's a .php when you open it in IE it auto-converts it to what its designed for, a webpage in .htm format. You need something to download it with that does not automatically assume it is webpage code, or at least doesn't try to open it in a browser.
Ok I’ve downloaded GetRight, it does the trick and will download the .php file, but I still have a problem, I have a forum, I can download the index.php file and any file I have on the server if I know the directory, except for the Settings.php file, some how it is locked, I can set the permissions to 777 and still it's locked, I can take the file upload it to a different directory and still I can not download it, the Settings.php is the file that contains all of the MySQL database information, It would be a security threat if it could be downloaded, but what confuses me is what did they do to the file to make it so that no one can download it. If anyone knows please tell me I am very couries to find out how they locked the file.
(I am using SMF v1.1) (but this locking method is used in a number of other forums as well)