First one works for me.
<?php
$right_now=date("Y-m-d")."T00:00:00-05.00";
print $right_now;
?>
yields
X-Powered-By: PHP/4.1.2
Content-type: text/html
2010-10-08T00:00:00-05.00
Obviously on an old server running PHP 4.1.2
Paul Peacock wrote:
can someone tell me why these 2 statemtents are not interchangeable?
$right_now=date("Y-m-d")."T00:00:00-05.00";
$right_now="2010-10-08T00:00:00-05:00";
The second one works, but the first one doesn't. They both seem to
echo the same string.
Thanks.
Paul Peacock
Lexington High School
------------------------------------------------------------------------
| Subscription info at http://www.tech-geeks.org |
| Subscription info at http://www.tech-geeks.org |