Jump to content

File Names


doubledee

Recommended Posts

What style do you use for your PHP file names?

 

For my CSS styles, I like to use camelCase (e.g. "boxUpcomingEvents{}"), but for PHP file names I have been using underscores (e.g. "some_long_file_name.php").

 

I think one reason I use underscores is that depending on your environment, case-sensitivity may or may not apply.  So "helloWorld.php" could be treated the same as "helloworld.php" by your file system.

 

Comments?  Suggestions?

 

 

Debbie

 

Link to comment
https://forums.phpfreaks.com/topic/251845-file-names/
Share on other sites

I tend to follow Zend's coding standards for most things, mainly because the file name is associated with the class name ;)

 

So I don't have to read a 1,000 page manual, care to be a little more specific?!

 

 

Debbie

 

 

Naming Conventions

one click and you would of been there.........

Link to comment
https://forums.phpfreaks.com/topic/251845-file-names/#findComment-1291486
Share on other sites

As someone who writes technical manuals and docs for a living, I advise you to take the time to read it, even if it's a lengthy read.  For sure, not all 1k pages are relevant to this situation, but I'm positive they are all relevant to a situation.  No doubt one of the best ways to improve yourself as a programmer is to RTFM ;)

Link to comment
https://forums.phpfreaks.com/topic/251845-file-names/#findComment-1291905
Share on other sites

As someone who writes technical manuals and docs for a living, I advise you to take the time to read it, even if it's a lengthy read.  For sure, not all 1k pages are relevant to this situation, but I'm positive they are all relevant to a situation.  No doubt one of the best ways to improve yourself as a programmer is to RTFM ;)

 

The doc in question was a grand total of 4 distinct pages.  Somewhat lengthy (coding conventions can be long and dry), but hardly an insurmountable task for someone with 5-10 minutes on their hands.

Link to comment
https://forums.phpfreaks.com/topic/251845-file-names/#findComment-1291910
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.