Forum Moderators: coopster
That can be a problem if you use .php or .inc.php as suggested above.
;)
.inc.php seems ok to me as well, but personally I prefer to keep all of my library files outside of the doc root in a folder (either like lib/ or inc/) and then further sub-divide that into folders that make sense and house the relevant scripts (classes/, pages/, utilities/, etc). And just use plain old .php
Personally, I cannot stand when I download a project and they have not used .php for php files. If you open a php file in any standard editor that has the extension .inc, it will not open it as a php file, but as just a plain-text file, which depending on the editor could leave you crippled until you either tell the program to read it as php (if you can), or rename it .inc.php or .php to edit it, and then back to just .inc so the app doesn't break...
Really, whatever suits your fancy, but if other people will be using the files, the last part should always be .php