Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.
Popular code excerpts may be moved to "Code Snippets" by the moderators.
Thanks. These are great basic examples that people may find useful.
You might want to edit your post to have the Time and Date examples to show what the output would be. It also might be handy to give links to the online documentation for date() and gmdate(). You don't explain why you don't use date() for both?
Also for the hit counter example, it would probably better to put the code in a function to keep the namespace clear because someone may be using the variables $counter or $fp. Those are common names.