Hi I am trying to list the files before trying to do a dowload but the below code will only work on local dirs.
Does anyone know how i could get the listing of a http site.
You could take a look at the site to see the files and dir listings I am trying to get.
speedownload.na i.com - /products/commonupdater/
Does anyone know how i could get the listing of a http site.
You could take a look at the site to see the files and dir listings I am trying to get.
speedownload.na i.com - /products/commonupdater/
Code:
<?php
if ($handle = opendir('http://speedownload.nai.com/products/commonupdater')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file\n";
}
}
closedir($handle);
}
?>
Comment