Any help is it possible echo the files exists in a specific directory using $PATH = URL how to read or open directory from website i checked it on my own server works well but when i put a url (domain.com/dir/) it do not works help if you know Thanks
handle = opendir("i want url here")) <?php if ($handle = opendir("i want url here")) { while (($file = readdir($handle)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); } ?> Code (markup):
Umh..what do you want to do exactly? You should use the full path. Eg. /home/username/domain.com/dir/.
its imposiple to see from url lol if any one can see the dir files from the url lol the world will die
the world will not die untill .htaccess and PHP.INI works and will not die who know how to disable fopen http://www.kingkoopa.com/001A/clr.php (but CURL works) will die who upload there products of high value $$ to websites like http://www.americaint.com/d/download/ and will die who do not know how to disable directory browsing like http://www.chipdouro.com.pt/Infor/ CURL works for what i was looking for <?php $dir = fopen("your URL here/dir/","r"); print_r(scandir("$dir")); ?> Code (markup): and scandir too as mentioned above i just started webmasters marketplace forum and i needed this to fight against spammers and for arbitration system there is nothing imposable