Re: [PHP] Function mktime() documentation question

2012-03-11 Thread Ashley Sheridan
On Sat, 2012-03-10 at 20:38 -0500, Tedd Sperling wrote: > On Mar 10, 2012, at 12:20 PM, Maciek Sokolewicz wrote: > > > function getAmountOfDaysInAMonth($month, $year) { > > $days = array(31, (($year%4==0 and ($year%100 > 0 or $year%400==0)) ? 29 > > : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 3

Re: [PHP] questions about $_SERVER

2012-03-11 Thread Stuart Dallas
On 11 Mar 2012, at 01:43, Tedd Sperling wrote: > On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote: >> On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling >> wrote: >>> That's correct, but to access those variables outside of their scope (such >>> as a function) you do via a SuperGlobal, name

Re: [PHP] questions about $_SERVER

2012-03-11 Thread Daniel Brown
On Sat, Mar 10, 2012 at 10:37, Tedd Sperling wrote: > As such, there are no "globals" in PHP other than SuperGlobals. As I said, if > I'm wrong, please show me otherwise. A superglobal is predefined at run-time by the parser, environment, SAPI, etc. (_SERVER, _POST, _GET, _REQUEST, _ENV, _SE

Re: [PHP] Have little enough hair as it is ...

2012-03-11 Thread Lester Caine
( Been down London over night ;) ) ... and was not awake enough to change email address ... http://piwik.medw.org.uk/phpinfo.php has http://piwik.medw.org.uk/ working fine... http://piwik.rainbowdigitalmedia.org.uk/phpinfo.php is just giving seg faults on http://piwik.rainbowdigitalmedia.org.u

Re: [PHP] questions about $_SERVER

2012-03-11 Thread Tedd Sperling
On Mar 11, 2012, at 10:25 AM, Daniel Brown wrote: > On Sat, Mar 10, 2012 at 10:37, Tedd Sperling wrote: >> As such, there are no "globals" in PHP other than SuperGlobals. As I said, >> if I'm wrong, please show me otherwise. > >A superglobal is predefined at run-time by the parser, > enviro

Re: [PHP] Function mktime() documentation question

2012-03-11 Thread Tedd Sperling
On Mar 11, 2012, at 6:12 AM, Ashley Sheridan wrote: > > I still don't see what's wrong with > > date("t"); > > -- > Thanks, > Ash Ash: It's just too damn simple -- we need to make things complicated. :-) Actually, this works for me: $days_in_month = date('t', mktime(0, 0, 0, $next_month, 0,

Re: [PHP] questions about $_SERVER

2012-03-11 Thread Tim Streater
On 11 Mar 2012 at 18:16, Tedd Sperling wrote: > On Mar 11, 2012, at 10:25 AM, Daniel Brown wrote: > >> On Sat, Mar 10, 2012 at 10:37, Tedd Sperling wrote: >>> As such, there are no "globals" in PHP other than SuperGlobals. As I said, >>> if I'm wrong, please show me otherwise. >> >>A superg

Re: [PHP] Function mktime() documentation question

2012-03-11 Thread Matijn Woudt
On Sun, Mar 11, 2012 at 7:33 PM, Tedd Sperling wrote: > On Mar 11, 2012, at 6:12 AM, Ashley Sheridan wrote: >> >> I still don't see what's wrong with >> >> date("t"); >> >> -- >> Thanks, >> Ash > > Ash: > > It's just too damn simple -- we need to make things complicated. :-) > > Actually, this wor

Re: [PHP] Have little enough hair as it is ...

2012-03-11 Thread Simon Schick
2012/3/11 Lester Caine : > ( Been down London over night ;) ) ... and was not awake enough to change > email address ... > > >> http://piwik.medw.org.uk/phpinfo.php has http://piwik.medw.org.uk/ working >> fine... >> >> http://piwik.rainbowdigitalmedia.org.uk/phpinfo.php is just giving seg >> fault

Re: [PHP] Have little enough hair as it is ...

2012-03-11 Thread Matijn Woudt
On Mon, Mar 12, 2012 at 12:11 AM, Simon Schick wrote: > 2012/3/11 Lester Caine : >> ( Been down London over night ;) ) ... and was not awake enough to change >> email address ... >> >> >>> http://piwik.medw.org.uk/phpinfo.php has http://piwik.medw.org.uk/ working >>> fine... >>> >>> http://piwik.r

Re: [PHP] Have little enough hair as it is ...

2012-03-11 Thread Lester Caine
Matijn Woudt wrote: > Things that I found you can try: > * Replace the index.php ... Some people reported that this error was > caused by an endless-loop in their php-script I have experienced a segfault once with mod_rewrite and some endless loop in a .htaccess file. So you might want to che