Page 1 of 1

Contributing

Posted: Fri Aug 29, 2003 11:00 am
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

Posted: Fri Aug 29, 2003 11:15 am
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

Posted: Fri Aug 29, 2003 7:15 pm
by JAM
phpdn's membersite http://www.evilwalrus.com would be a good start for snippets.

Fear the blubber.

Posted: Wed Sep 17, 2003 6:07 pm
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

Posted: Wed Sep 17, 2003 6:28 pm
by JAM
I havn't said anything... ;)

Posted: Wed Sep 17, 2003 7:33 pm
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.