Reply to Re: [PHP] Filemaker Checkbox Data Problem...

Your name:

Reply:


Posted by Richard Lynch on 04/01/05 10:10

On Thu, March 31, 2005 12:44 pm, Nick Zukin said:
> I've got a client who uses Filemaker Pro and I'm trying to parse some of
> their data. However, the checkbox data of theirs is giving me fits. From
> what I've read, it's supposed to save checkboxes as data separated by
> carriage returns. However, in looking at the data in EditPlus I can't
> discern what they are and in trying to parse them with str_replace I've
> had
> no luck searching for \r \n \r\n or anything else.
>
> Anyone else had this misfortune?

Since you have the string in question, and the funky character is
non-printable, do this:

<?php
$string = "funky-ass string from Filemaker";
for ($i = 0; $i < strlen($string); $i++){
$c = $string[$i]; //Yes, it's deprecated. Whatever.
$o = ord($c);
if ($o < 65) echo "Found character with ASCII value: ", $o, "<br />\n";
}
?>

Once you know what the ASCII value is, figuring out what to do about it
gets pretty trivial.

You could also open the files in a Hex editor and find out what the
character is, but the it's not a PHP question :-)

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original 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

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