TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-13-2009, 04:54 PM   #1 (permalink)
The Acquainted
 
Randy's Avatar
 
Join Date: May 2007
Location: Your G/F's Closet
Posts: 114
Thanks: 7
Randy is on a distinguished road
Default PHP comments

Not quite sure where this would go so i thought i'd stick it here. I am curious when you create a something using PHP do you add a copyright near the top or bottom? and if so what kind do you do.

For me it depends on what kind of project it is, if its an open-source project or just a mess around project use something like this:

Quote:
/**
* @version 1.0
* @package PROJECTNAME
* @copyright Copyright (C) 2009 PROJECTNAME. All rights reserved.
* @license GNU/GPL, see LICENSE.txt
* RemixCMS is free software. This version may have been modified pursuant to the GNU General Public
* License, and as distributed it includes or is derivative of works licensed under the GNU General Public
* License or other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
But if its like a something that is personal use only or something i tend to pull what vBulletin does:

Quote:
/*================================================= =====================*\
||
|| PROJECT NAME
||
|| --------------------------------------------------------------
||
|| Copyright (c)2009-2010 My Company. All Rights Reserved.
|| This file may not be redistributed in whole or significant part.
|| PROJECT NAME IS NOT FREE SOFTWARE
|| my website url | my tos or client area url
||
\*================================================ ======================*/

What about you?
__________________
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 - Andrew Rutherford
Send a message via AIM to Randy Send a message via MSN to Randy
Randy is offline  
Reply With Quote
Old 06-13-2009, 05:32 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

I use only the PHPDoc style comments as you have there in your first example. Then I really only use the abstract and return parameters. With others depending on if it's useful.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 06-22-2009, 01:44 PM   #3 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

Same as WH here. The first one is supported quite nicely by Zend Studio so it makes developing with others more easy.

And i don't like the big fancy comment blocks, just takes space...
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start comments in PHP: /* or /** Dave Absolute Beginners 15 03-30-2013 07:55 AM
Can't get PHP 5. to work? Newbie windows PHP guy DotNetTim Absolute Beginners 11 02-01-2013 11:02 AM
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 06:55 AM
PHP Compressor Kalle Script Giveaway 8 05-28-2008 12:14 AM
what are all the subjects in php? sarmenhb General 7 01-21-2008 05:41 PM


All times are GMT. The time now is 12:24 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design