Grazie mille. Funziona.
Vi chiedo però un attimo ancora di pazienza.
Ho trovato su questo forum il codice php per visualizzare il contenuto della cartella protetta (dopo l'immissione di user e pwd).
Questa volta l'errore è il seguente
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@sitomio.it and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Il codice è il seguente che ho usato è il seguente
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> <?php function stampa_dir($cartella) { $startdir = $cartella."/"; $ignoredDirectory[] = '.'; $ignoredDirectory[] = '..'; if (is_dir($startdir)) { if ($dh = opendir($startdir)) { while (($folder = readdir($dh)) !== false) { if (!(array_search($folder,$ignoredDirector... > -1)) { if (filetype($startdir . $folder) == "dir") { echo $startdir.$folder." [DIR]
"; stampa_dir ($startdir . $folder); } else { echo $startdir.$folder."
"; } } } closedir($dh); } } } stampa_dir("."); ?> </body> </html>
Potete darmi ancora una mano?
Grazie infinite