Quantcast
Channel: PHP file naming conventions (.class, .inc) - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by Emissary for PHP file naming conventions (.class, .inc)

As far as the PHP interpreter is concerned there's no behavioural reason to include these descriptors at all. The de facto convention seem to be, to include them as part of the file suffix however I...

View Article



Answer by Ian for PHP file naming conventions (.class, .inc)

I make my class files end with .class.php so I can see it's a class but no-one can view the source.

View Article

Answer by Sarfraz for PHP file naming conventions (.class, .inc)

It is suggested by PHP best practice coding standards to name classes with class keyword somewhere in the class file name. However, the final decision is yours whether you want to stick with that or...

View Article

Answer by Roch for PHP file naming conventions (.class, .inc)

In my opinion the best practice is to use a Framework and use the same naming conventions they uses in their sample projects. I don't think there is a Standard for it since it doesn't make a...

View Article

Answer by Joe Phillips for PHP file naming conventions (.class, .inc)

Not reallyDepending on how you have your .htaccess file set up, it can determine which classes are visible to the world. I believe best practice still says to end every file with .php if you can.

View Article


PHP file naming conventions (.class, .inc)

I see .class and .inc included in file names a lot of the time. My current understanding is that this is just a best practice to make the purpose/contents of the file clear. Is there any instance in...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images