I'm was phrasing a file and found a error with the file name while saving to mysql database.
Original file name looks something like Thor - Thor:The Dark World
but after phrasing and saving the name to mysql through PHP, the string turns to Marvels Thor:the Dark World
.
It displays the same even when I ECHO
the PHP variable that holds the string so this has nothing to do with mysql.
where am I doing wrong? Any suggestions?
$di = new RecursiveDirectoryIterator('/var/www/example/data/');
foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
echo $file->getFilename(); //displays Marvels Thor:the Dark World
$data[] = array('file'=>array('name'=>$file->getFilename(),'path'=>$filename));
}