![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dreamweaver see a .inc file as a PHP file? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Is there any way to make Dreamweaver see a .inc file as a PHP file? |
#5
| |||
| |||
|
|
The easy way: Name your files *.inc.php. With this double extension you know that the files are includes and any other program knows that the files contain PHP-code. |
#6
| |||
| |||
|
|
And any PHP code in the file will be executed before the content is sent to a browser, thereby protecting any user name or passwords that might be contained in the file. |
#7
| |||
| |||
|
|
True, but such situations can be avoided with storing the PHP-includes and config-files outside the document root (making them not accessible via HTTP). Even if the webserver is misconfigured and returns the files unparsed only the include-statements in the pages will be returned, but not the included files with the critical code. |
![]() |
| Thread Tools | |
| Display Modes | |
| |