Deprecated: Assigning the return value of new by reference is deprecated in /membri/echoweb/wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in /membri/echoweb/wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /membri/echoweb/wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in /membri/echoweb/wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in /membri/echoweb/wp-settings.php on line 18

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /membri/echoweb/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /membri/echoweb/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /membri/echoweb/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /membri/echoweb/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /membri/echoweb/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /membri/echoweb/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /membri/echoweb/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /membri/echoweb/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /membri/echoweb/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /membri/echoweb/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /membri/echoweb/wp-includes/wp-db.php on line 306

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /membri/echoweb/wp-includes/cache.php on line 431

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /membri/echoweb/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /membri/echoweb/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /membri/echoweb/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /membri/echoweb/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /membri/echoweb/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /membri/echoweb/wp-includes/http.php on line 61

Strict Standards: Non-static method K2::init() should not be called statically in /membri/echoweb/wp-content/themes/k2/functions.php on line 31

Strict Standards: Non-static method K2::register_scripts() should not be called statically in /membri/echoweb/wp-content/themes/k2/app/classes/k2.php on line 51

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2Options::init() should not be called statically in /membri/echoweb/wp-includes/plugin.php on line 339

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2Header::init() should not be called statically in /membri/echoweb/wp-includes/plugin.php on line 339

Strict Standards: Non-static method K2Header::get_header_width() should not be called statically in /membri/echoweb/wp-content/themes/k2/app/classes/header.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /membri/echoweb/wp-includes/class.wp-dependencies.php:31) in /membri/echoweb/wp-content/plugins/wassup/wassup.php on line 1434

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2::filter_post_comments() should not be called statically in /membri/echoweb/wp-includes/plugin.php on line 166

Strict Standards: array_filter() expects parameter 2 to be a valid callback, non-static method K2::strip_trackback() should not be called statically in /membri/echoweb/wp-content/themes/k2/app/classes/k2.php on line 458
Php: Elenco file dentro cartelle at ECHOWEB
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2Header::output_header_css() should not be called statically in /membri/echoweb/wp-includes/plugin.php on line 339

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2Header::output_header_css() should not be called statically in /membri/echoweb/wp-includes/plugin.php on line 339


Php: Elenco file dentro cartelle

Con questo codice è possibile creare un elenco dei file contenuti in una cartella, usando o no un filtro sull’estensione…

<?php
$list = glob("*.txt"); // si puo' anche usare glob("doc/soft/img/*.txt");
if($list[0]!='')
{
	foreach ($list as $filename)
	{
		echo "$filename size " . filesize($filename) . "<br />";
	}
}
else
{
	echo "Nessun riscontro";
}
?>

L’esito si presenta così:

funclist.txt size 44686
funcsummary.txt size 267625
quickref.txt size 137820




Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method K2::filter_comments_array() should not be called statically in /membri/echoweb/wp-includes/plugin.php on line 166

Strict Standards: array_filter() expects parameter 2 to be a valid callback, non-static method K2::strip_trackback() should not be called statically in /membri/echoweb/wp-content/themes/k2/app/classes/k2.php on line 469

Strict Standards: array_filter() expects parameter 2 to be a valid callback, non-static method K2::strip_comment() should not be called statically in /membri/echoweb/wp-content/themes/k2/app/classes/k2.php on line 470

1 Response to “Php: Elenco file dentro cartelle”


  1. 1 Pasquale

    Test

Leave a Reply