Hi,
URLencode returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+)
signs. It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type.
function ListFolder($path)
{
   $dir_handle = @opendir($path) or die("Unable to open $path");
  Â
  $dirname = end(explode("/", $path));
  Â
   echo ("<li>$dirnamen");
   echo "<ul>n";
   while (false !== ($file = readdir($dir_handle)))
   {
      if($file!="." && $file!="..")
      {
         if (is_dir($path."/".$file))
         {
           ListFolder($path."/".$file);
         }
         else
         {
            echo "<li>$file</li>";
         }
      }
   }
   echo "</ul>n";
   echo "</li>n";
Â
   closedir($dir_handle);
}
|
My Blog Title
|