Re: [PHP] Unix date (even more bazaar)



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?
.



Relevant Pages

  • Re: [PHP] Unix date (even more bazaar)
    ... tedd wrote: ... if I cut/paste the following string "as-is" into the "Input Date" portion of the form: ... It doesn't work and returns a UNIX timestamp of "". ... the email translation made both strings identical -- so this won't work for those trying it. ...
    (php.general)
  • Re: [PHP] Unix date (even more bazaar)
    ... "tedd" wrote in message ... portion of the form: ... It doesn't work and returns a UNIX timestamp of "". ... Hi Tedd, next time you could just reply to your origional thread, you can change the subject without making new thread, it's just harder for other people to follow. ...
    (php.general)
  • Re: [PHP] MD5 & bot Question
    ... On 4/10/07, tedd wrote: ... simply change a single pixel in the image and that pixel is NOT ... included in the small portion you use for your MD5, ...
    (php.general)