Re: Unix date (even more bazaar)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux