You are here: Re: trying to make characters safe for my RSS feed « PHP Programming Language « IT news, forums, messages
Re: trying to make characters safe for my RSS feed

Posted by lkrubner on 10/11/05 01:20

Okay, the function doesn't work:

http://www.whatisliberalism.com/pdsFiles/page2533.xml

All the white space got replaced, but the entity that is kill the feed
is still there.

What is wrong with this function?

function command($string=false) {
$howMany = strlen($string);

$newString = "";
for ($i=0; $i < $howMany; $i++) {
$char = $string[$i];
$asciiNum = ord($char);
if ($asciiNum > 32 && $asciiNum < 128) {
$newString .= $char;
} else {
$newString .= "'";
}
}

return $newString;
}

 

Navigation:

[Reply to this 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

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