Re: [PHP] Unix date (even more bazaar)
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Sun, 30 Dec 2007 19:07:49 -0600 (CST)
Spacing and/or control (unprintable) characters could easily be
messing you up.
Use something like:
$l = strlen($input);
for ($i = 0; $i < $l; $i++){
echo "$i: $input[$i] (", ord($input[$i]), ")<br />\n";
}
to see what you're getting.
On Fri, December 28, 2007 5:08 pm, tedd wrote:
At 6:01 PM -0500 12/28/07, tedd wrote:
Hi gang:
This really bazaar
Here's the code and demo:
http://webbytedd.com/c/unix-time1/index.php
If I cut/paste the following string "as-is" into the "Input Date"
portion of the form:
10-18-2009 00:00:00
It works and returns a UNIX timestamp of 1255885200
However, if I cut/paste the following string "as-is" into the "Input
Date" portion of the form:
10-18-2009 00:00:00
It doesn't work and returns a UNIX timestamp of "".
Am I going mad? What the hell is the difference between these two
stings?
Arrgggg!!!! I knew this day would come.
tedd
As I feared, the email translation made both strings identical -- so
this won't work for those trying it.
BUT, I do have two strings that look identical but aren't.
I hate it when things like this happen.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
.
- Follow-Ups:
- Re: [PHP] Unix date (even more bazaar)
- From: tedd
- Re: [PHP] Unix date (even more bazaar)
- References:
- Re: [PHP] Unix date (even more bazaar)
- From: tedd
- Re: [PHP] Unix date (even more bazaar)
- From: tedd
- Re: [PHP] Unix date (even more bazaar)
- Prev by Date: Re: [PHP] when does php stop php executing when user clicks stop
- Next by Date: RE: [PHP] socket_read can not read the whole HTTP page?
- Previous by thread: Re: [PHP] Unix date (even more bazaar)
- Next by thread: Re: [PHP] Unix date (even more bazaar)
- Index(es):
Relevant Pages
|