Contributing

This forum is for discussing the future of the PHP Developer's Network, as well as for us to get your opinion on things.

This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
G-Zilla
Forum Newbie
Posts: 1
Joined: Fri Aug 29, 2003 11:00 am
Location: Cambridge, Ont, Canada

Contributing

Post by G-Zilla »

I wrote a PHP function that I find usefull because I do a lot of for looping but also like my Month format to be long textual. Anyway I'm not really sure where to go to say hey maybe this should be part of PHP and I'm on so many websites I'll doubt I'll find my way back here for your suggestions so here's the function:

for($m=0; $m<12; $m++)
{
echo month_change($m),"<br>";
}

function month_change($n_month)
{
$t_month = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return $t_month[$n_month];
}

Anyway if someone reads this and knows where to submit things to be contributed you can take it and do that if you want I don't care about getting credit there probably is already something like this built in I just couldn't find but that's just it I couldn't find anything like this so I just wrote that. On the off change I do find my way back here a link to a page where you can contribute to PHP would be nice.

-Gordon
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

yeah, i think this would be a good idea. A code snippets sections, where users can enter a title, a description, and the actual code.

What does everyone else think?

Mark
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

phpdn's membersite http://www.evilwalrus.com would be a good start for snippets.

Fear the blubber.
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

yep...JAM is right, but i hate login every time i want to put a code...well..i noy have like 2 crapy scritps over there from aggggeesss ago but still...why do we have to login to put scripts?...you prolly got a good reason for it so never mind me :roll:

JAM..i am not following you btw so..calm down LOL
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I havn't said anything... ;)
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I made a post a while back viewtopic.php?p=49315#49315 regarding this. I hoped to get enough material to do an article, or series, for phpdn. Wouldn't be anything like the scale of evilwalrus - just a bunch of "essential" utilities rather than complete scripts.

Many code submission type pages end up with the pearls hidden amongst the swine - or whatever it is - so I planned to pick out just the really useful and well-written ones. A rating system might be another, more democratic, way to do it.

There are a lot of plans afoot to add to the site, once the development team are able to set aside some time to get everything done.
Post Reply