Re: All Monday's & Thursdays
- From: malcolm <malcolm@xxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 06:37:19 -0400
On Fri, 30 Jun 2006 06:17:02 -0400, Janwillem Borleffs <jw@xxxxxxxxxxxxx> wrote:
malcolm wrote:When I run this on XP Pro with an XAMP
I get this ;
Warning: date() [function.date]: Windows does not support dates prior
to midnight (00:00:00), January 1, 1970 in C:\apachefriends\blah\blah
would you explain what this code does please
This should only happen when the time on your box is set incorrectly (that
is on a date before 1970).
How do you call the function and what is the current date on your machine
set to?
JW
Here's the script I used;
<html>
<head>
<title>Next Thursday</title>
</head>
<body>
<?php
$day = date('D', $ts = strtotime('thursday', $ts));
echo "$day";
?>
</body>
</html>
My clock is ok, right now it says June 30 6:38 AM,
within a few minutes of what the TV News says.
This is Apache/2.0.52 (Win32) mod_ssl/2.0.52
OpenSSL/0.9.7e PHP/5.0.3
.
- Follow-Ups:
- Re: All Monday's & Thursdays
- From: Janwillem Borleffs
- Re: All Monday's & Thursdays
- References:
- All Monday's & Thursdays
- From: Stuart Colman
- Re: All Monday's & Thursdays
- From: Janwillem Borleffs
- Re: All Monday's & Thursdays
- From: Janwillem Borleffs
- Re: All Monday's & Thursdays
- From: Stuart Colman
- Re: All Monday's & Thursdays
- From: malcolm
- Re: All Monday's & Thursdays
- From: Janwillem Borleffs
- All Monday's & Thursdays
- Prev by Date: Re: All Monday's & Thursdays
- Next by Date: Re: All Monday's & Thursdays
- Previous by thread: Re: All Monday's & Thursdays
- Next by thread: Re: All Monday's & Thursdays
- Index(es):
Relevant Pages
|