You are here: Re: All Monday's & Thursdays « All PHP « IT news, forums, messages
Re: All Monday's & Thursdays

Posted by malcolm on 06/30/06 10:37

On Fri, 30 Jun 2006 06:17:02 -0400, Janwillem Borleffs <jw@jwscripts.com>
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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация