PDA

View Full Version : [help] Enable 'edit' Action For *.inc Files



mrshiney
09-27-2005, 09:42 AM
Hi. I'm using PHP includes of various *.inc files (just text files). I'd like the DA file manager to display the 'Edit' action for these files like it does for other types (php, txt, etc.)

Is there a way to do this?

TIA.

dbmasters
09-27-2005, 09:52 AM
don't get into the habit of using non-parsable extentions for includes. Includes often have usernames and password for databases and such in them, and if it's a file type that the parsing engine does not put thru, you can load those files right in the browser as plain text for anyone to see and steal your passwords.

There are a few schools of thought on this subject, but I personally always use, and recommend using php extensions for include files as well, or php3 or something that is server parsable.

Alternatively, add this to your htaccess file to make inc parsable: http://www.javascriptkit.com/howto/htaccess4.shtml

As far as your question goes, I dunno if there is a way.

eugene
09-27-2005, 09:57 AM
I would suggest using .inc.php as a combo extension. For example, config.inc.php.