PHP special characters
Posted: Thu Apr 23, 2009 4:23 am
Hello,
I've a PHP script that lists the directories and files of a partition of my harddisk. Here is the problem : the special characters are not taken into account. I've used the htmlspecialchars function but without success. Here is the piece of code :
Thanks for your help,
seb
I've a PHP script that lists the directories and files of a partition of my harddisk. Here is the problem : the special characters are not taken into account. I've used the htmlspecialchars function but without success. Here is the piece of code :
Code: Select all
$folders .= '<a href="dir.php?rep='.$mydir.$file.'/">'.htmlspecialchars($file,ENT_QUOTES,"ISO-8859-15").'</a>';seb