Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Fix charset fuckups for good ... (iso/uft to xml entities)

Author:mike - Mon Mar 16 10:02:03 2009

#!/usr/bin/php
<?
for ($i=1; $i<$argc; $i++)
{
        //print_r($argv);

        print "Doing ".$argv[$i]."....";;

        $buffer=file_get_contents($filename=$argv[$i]);

        $buffer=html_entity_decode($buffer);

        $buffer=htmlentities($buffer);

        file_put_contents($filename,$buffer);

        print "Done!\n";
}
?>

This is the sweet sensation about PHP .... Kiss dude ;)
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk