Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500
.

Think I deserve a present? See my Amazon Wish List

PHP File Listing

function read_dir($basedir,$thisdir) {
//	$thisdir = eregi_replace("/","\\",$thisdir);
	if ($handle = opendir($thisdir)) {
		print ("<tr><th colspan=5><a href=\"file_listing.php?dirname=$thisdir\">$thisdir</a></th></tr>");
		while (false !== ($file = readdir($handle))) {
        if ($file != "." && $file != "..") {
			if (is_dir("$thisdir/$file")) {
					$dir_array[] = $file;
				} else {
					$file_array[] = $file;
				}
			}
	    }
	closedir($handle); 
	}
	if ($file_array) {
		sort($file_array);
		foreach ($file_array as $key=>$var) {
			if ($basedir == $thisdir) {
				$thisdir_bit = "/";
			} else {
				$basedir_strlen = strlen($basedir);
				$thisdir_bit = substr($thisdir,$basedir_strlen);
			}
			$filesize = filesize("$thisdir/$file_array[$key]");
			$filectime = filectime("$thisdir/$file_array[$key]");
			$filectime = date("Y-m-d H:i:s", $filectime); 
			print ("<tr>");
			print ("<td>$basedir</td>");
			print ("<td>$thisdir_bit</td>");
			print ("<td>$file_array[$key]</td>");
			print ("<td>$filectime</td>");
			print ("<td>$filesize</td>");
			print ("</tr>");
		}
	}
	if ($dir_array) {
		sort($dir_array);
		foreach ($dir_array as $key=>$var) {
		$nextdir = "$thisdir/$var";
		read_dir($basedir,$nextdir);
		}
	}
}

if ($submit && !$dirname) {
	$dirname = $PATH_TRANSLATED;
	print ("<p>$dirname</p>");
}

if ($dirname) {
	if (is_file($dirname)){
		$dirname = dirname("$dirname");
	}
	$dirname = stripslashes("$dirname");
	print ("<p>dirname $dirname</p>");
	print ("<table border=1>\n");
	read_dir($dirname,$dirname);	
	print ("</table>\n");
}

dirname .

.
./accessibility_usability.php2021-06-04 20:10:221400
./adsense_competitive_ad_filter.php2021-06-04 20:10:225144
./affirmations.php2021-06-04 20:10:223763
./ahttpd_dead_but_subsys_locked.php2021-06-04 20:10:221850
./apache_pcfg_openfile_unable_to_check_htaccess.php2021-06-04 20:10:221637
./apache_windows_virtualhost.php2021-06-04 20:10:222197
./browsers_sizes.php2021-06-04 20:10:22646
./centre_box_columns.php2021-06-04 20:10:221680
./character_iso-8859-1.php2021-06-04 20:10:2228968
./chitika.php2021-06-04 20:10:222348
./code_reformat.php2021-06-04 20:10:222365
./colour_table.php2021-06-04 20:10:222956
./contact_form.php2021-06-04 20:10:2211904
./contact_form.txt2021-06-04 20:10:225809
./contact_form.txt22021-06-04 20:10:226398
./css_border_background_bug.php2021-06-04 20:10:224850
./css_class_float.php2021-06-04 20:10:222490
./css_class_float_min_width.php2021-06-04 20:10:222317
./css_class_float_width.php2021-06-04 20:10:222307
./css_class_name_float.php2021-06-04 20:10:223387
./css_colour_tool.php2021-06-04 20:10:226350
./css_img_hover.php2021-06-04 20:10:223364
./dir_listing.php2021-06-04 20:10:223082
./directory_file_listing_with_sizes.php2021-06-04 20:10:222523
./dynamic_content_using_innerHTML_in_IE_and_NN6.php2021-06-04 20:10:222328
./eclipse_configuring_domain_names.php2021-06-04 20:10:222280
./email_accounts.php2021-06-04 20:10:221389
./email_dont_delete_this_message.php2021-06-04 20:10:221424
./email_reformat.php2021-06-04 20:10:223009
./email_reformat_token.php2021-06-04 20:10:222413
./email_send_document_as_html_email.php2021-06-04 20:10:221403
./err_pop_eof_or_io_error_on_a_users_login.php2021-06-04 20:10:222029
./error_log2022-01-04 15:17:2113085214
./examine_images_report_filesize.php2021-06-04 20:10:244214
./excel_find_question_mark.php2021-06-04 20:10:241758
./excel_keyboard_shortcuts.php2021-06-04 20:10:245588
./excel_large_number_error.php2021-06-04 20:10:242027
./excel_large_number_paste.php2021-06-04 20:10:241682
./excel_password_protect.php2021-06-04 20:10:242093
./excel_sentance_case.php2021-06-04 20:10:241596
./excite_plays_hide_the_free_submit_link.php2021-06-04 20:10:241287
./explode_for_meta_keywords.php2021-06-04 20:10:247949
./favicon_ico.php2021-06-04 20:10:241027
./file_listing.php2021-06-04 20:10:244021
./file_listing_alter.php2021-06-04 20:10:246547
./file_system.php2021-06-04 20:10:242445
./file_system_now.php2021-06-04 20:10:242251
./filename_conversion_form.php2021-06-04 20:10:243351
./firefox.php2021-06-04 20:10:242460
./firefox_apostrophe_bug.php2021-06-04 20:10:243016
./firefox_chrome_registration_failed.php2021-06-04 20:10:241586
./firefox_enable_spelling_check.php2021-06-04 20:10:241777
./firefox_run_as_administrator.php2021-06-04 20:10:24907
./firefox_tips.php2021-06-04 20:10:241157
./flash_text_some_characters_disappear.php2021-06-04 20:10:241742
./flash_text_under_mask.php2021-06-04 20:10:241718
./fun_web_products.php2021-06-04 20:10:2419920
./fun_web_products_for_webmasters.php2021-06-04 20:10:243100
./game_walkthroughs_hints_tips.php2021-06-04 20:10:242059
./gmail_alternative_email_address.php2021-06-04 20:10:242079
./gmail_keyboard_shortcuts.php2021-06-04 20:10:247117
./gmail_label_sorting.php2021-06-04 20:10:24974
./google-search-for-seo-research.php2021-06-04 20:10:2430513
./google_universal_search_video_results.php2021-06-04 20:10:242775
./greasemonkey.php2021-06-04 20:10:242553
./guide.php2021-06-04 20:10:2421769
./how_to_win_friends_and_influence_people.php2021-06-04 20:10:243352
./html_fieldset.php2021-06-04 20:10:241281
./html_link_element.php2021-06-04 20:10:241771
./html_table_height.php2021-06-04 20:10:244319
./images_test_filesize.php2021-06-04 20:10:244543
./images_test_filesize.txt2021-06-04 20:10:243577
./images_the_halo_effect.php2021-06-04 20:10:24975
./index-js-tests.bak2021-06-04 20:10:244523
./index.bak2021-06-04 20:10:244277
./index.php2021-06-04 20:10:244187
./internet_explorer_tips.php2021-06-04 20:10:242494
./javascript_addfavorite.php2021-06-04 20:10:241081
./javascript_moveto.php2021-06-04 20:10:242066
./javascript_new_window_full_screen.php2021-06-04 20:10:241662
./javascript_open_new_window_form.php2021-06-04 20:10:245309
./javascript_radio_totals.php2021-06-04 20:10:244325
./javascript_screen_window_properties.php2021-06-04 20:10:242680
./javascript_screen_window_properties_2.php2021-06-04 20:10:245951
./javascript_search_engine_01.php2021-06-04 20:10:242099
./komodo_default_key_settings.php2021-06-04 20:10:241640
./labels_template.php2021-06-04 20:10:245835
./linux_bash_integer_expression_expected.php2021-06-04 20:10:24813
./linux_find_exclude_multiple_directories.php2021-06-04 20:10:241830
./linux_find_files_edited_today.php2021-06-04 20:10:241261
./linux_find_prune_and_ignore_directories.php2021-06-04 20:10:242227
./linux_find_prune_directory.php2021-06-04 20:10:241372
./linux_find_string_files.php2021-06-04 20:10:242514
./linux_find_string_in_files.php2021-06-04 20:10:241208
./linux_grep.php2021-06-04 20:10:241413
./linux_load_average_check.php2021-06-04 20:10:241383
./linux_ls_awk_totals.php2021-06-04 20:10:241810
./linux_parsing_log_file_for_links.php2021-06-04 20:10:241422
./linux_remove_duplicate_lines_with_uniq.php2021-06-04 20:10:241658
./linux_rename_directory.php2021-06-04 20:10:241600
./linux_rename_files.php2021-06-04 20:10:241615
./linux_search_and_replace_multiple_files.php2021-06-04 20:10:242011
./linux_send_html_email_from_command_line.php2021-06-04 20:10:241448
./linux_vi_string_substitution.php2021-06-04 20:10:241359
./local_55768.xml2021-06-04 20:10:24411
./md5_string.php2021-06-04 20:10:242617
./md5_unique_sub_string.php2021-06-04 20:10:241320
./microsoft_word_tips.php2021-06-04 20:10:242137
./mutt_email_client.php2021-06-04 20:10:24974
./mysql_date_calulation.php2021-06-04 20:10:242013
./mysql_day_of_year.php2021-06-04 20:10:241995
./mysql_distinct_or_group_by.php2021-06-04 20:10:240
./mysql_errno_145.php2021-06-04 20:10:241108
./mysql_left_outer_join.php2021-06-04 20:10:241306
./mysql_select_into_file.php2021-06-04 20:10:241409
./mysql_self_join.php2021-06-04 20:10:244367
./netscape_6_css_01.php2021-06-04 20:10:241505
./online_email_reformat.php2021-06-04 20:10:242611
./page_bottom.php2021-06-04 20:10:241316
./php_checkbox_check.php2021-06-04 20:10:241343
./php_checkdnsrr.php2021-06-04 20:10:241700
./php_contact_form.php2021-06-04 20:10:249417
./php_contact_form_anti_spam.php2021-06-04 20:10:241326
./php_convert_string_to_title_case.php2021-06-04 20:10:241856
./php_convert_url_to_link.php2021-06-04 20:10:241773
./php_create_simple_form_from_db.php2021-06-04 20:10:241406
./php_design_random_image_generator.php2021-06-04 20:10:242310
./php_gethostbyaddr.php2021-06-04 20:10:241324
./php_gethostbyaddr_googlebot.php2021-06-04 20:10:244537
./php_google_referer.php2021-06-04 20:10:242004
./php_javascript_passing_values_to_new_window_in_url.php2021-06-04 20:10:243052
./php_list_a_directory.php2021-06-04 20:10:242565
./php_multi_dimensional_arrays.php2021-06-04 20:10:241979
./php_php_self_non_printable_character.php2021-06-04 20:10:241294
./php_prev_next_array.php2021-06-04 20:10:243216
./php_prohibit_access_to_pages_based_on_ip_address.php2021-06-04 20:10:242032
./php_read_titles.php2021-06-04 20:10:242374
./php_read_titles_code.php2021-06-04 20:10:243285
./php_select_options_form.php2021-06-04 20:10:243006
./php_uk_mailing_list.php2021-06-04 20:10:242132
./php_url_count_check_for_comment_spam.php2021-06-04 20:10:242329
./php_what_does_php_stand_for.php2021-06-04 20:10:241183
./pig_latin_ongo_bongo_generator.php2021-06-04 20:10:242216
./pine_delete_on_date.php2021-06-04 20:10:241540
./piping_commands_find_grep_sed.php2021-06-04 20:10:243136
./ppcthink.txt2021-06-04 20:10:243784
./procmail_extraneous_locallockfile_ignored.php2021-06-04 20:10:242272
./productivity.php2021-06-04 20:10:241960
./remove_special_characters.php2021-06-04 20:10:246175
./remove_special_characters_basic.php2021-06-04 20:10:241539
./ror.xml2021-06-04 20:10:2465197
./search_engines_read_php.php2021-06-04 20:10:241967
./seo_create_link_form.php2021-06-04 20:10:243563
./seo_links_on_page_javascript.php2021-06-04 20:10:241989
./seo_wheres_it_rank.txt2021-06-04 20:10:244054
./server_email_554.php2021-06-04 20:10:242829
./server_misconfiguration.php2021-06-04 20:10:241776
./sort_file.php2021-06-04 20:10:241755
./spelling_errors.php2021-06-04 20:10:241040
./spyware.php2021-06-04 20:10:242860
./stumbleupon_blog_intergration.php2021-06-04 20:10:247996
./terminal_window_freezes.php2021-06-04 20:10:24983
./the_pop3_mail_server_is_not_responding.php2021-06-04 20:10:242100
./thunderbird_save_search_as_folder.php2021-06-04 20:10:24627
./tips_banner.php2021-06-04 20:10:241502
./usability_113_guidelines.php2021-06-04 20:10:244870
./usability_bbc_redesign_the_glass_wall.php2021-06-04 20:10:242767
./using_email.php2021-06-04 20:10:249289
./vim_block_editing.php2021-06-04 20:10:241640
./vim_general_tips.php2021-06-04 20:10:241082
./whats_my_ip_address.php2021-06-04 20:10:24807
./wordpress_stumbleupon_intergration.php2021-06-04 20:10:241435
./clickbank
./clickbankadsense_gold.php2021-06-04 20:10:2476
./clickbankadsense_ready_150_adsense_websites.php2021-06-04 20:10:2474
./clickbankadware_alert.php2021-06-04 20:10:2474
./clickbankaffirmations_software.php2021-06-04 20:10:2477
./clickbankarticle_directory_pro.php2021-06-04 20:10:2472
./clickbankclickbank.php2021-06-04 20:10:2475
./clickbankdaves_cool_little_website.php2021-06-04 20:10:2475
./clickbankerrkiller.php2021-06-04 20:10:2476
./clickbankerror_doctor_registry_repair_software.php2021-06-04 20:10:2476
./clickbankerror_log2021-06-04 20:10:2420412
./clickbankindex.php2021-06-04 20:10:245539
./clickbankkeyword_elite.php2021-06-04 20:10:2474
./clickbankmichael_cheneys_adsense_videos.php2021-06-04 20:10:2476
./clickbanknoadware.php2021-06-04 20:10:2489
./clickbanknoadware_remove_harmful_adware_spyware_trojans_dialers_and_worms.php2021-06-04 20:10:2475
./clickbankrefer.php2021-06-04 20:10:2475
./clickbankregistry_fix_Repair_Clean_Up_File_Fix_For_Windows.php2021-06-04 20:10:2473
./clickbankspywarebot_search_and_destroy.php2021-06-04 20:10:2477
./clickbankthe_power_of_positive_habits_e-book.php2021-06-04 20:10:2473
./contacts
./email_obfuscation_for_spambots
./email_obfuscation_for_spambotscontact.php2021-06-04 20:10:244133
./email_obfuscation_for_spambotscontact.txt2021-06-04 20:10:245470
./email_obfuscation_for_spambotscontact_example.php2021-06-04 20:10:248325
./email_obfuscation_for_spambotserror_log2021-06-04 20:10:2423179
./email_obfuscation_for_spambotsindex.php2021-06-04 20:10:24923
./email_obfuscation_for_spambotsspam_menu.php2021-06-04 20:10:24391
./email_obfuscation_for_spambotsspambot_00.php2021-06-04 20:10:24668
./email_obfuscation_for_spambotsspambot_01.php2021-06-04 20:10:241671
./email_obfuscation_for_spambotsspambot_02.php2021-06-04 20:10:241873
./email_obfuscation_for_spambotsspambot_03.php2021-06-04 20:10:241691
./email_obfuscation_for_spambotsspambot_04.php2021-06-04 20:10:241145
./flash_text_under_mask_files
./flash_text_under_mask_filestext_mask.fla2021-06-04 20:10:2429184
./flash_text_under_mask_filestext_mask.html2021-06-04 20:10:241335
./flash_text_under_mask_filestext_mask.swf2021-06-04 20:10:2420539
./images
./imagesa4_diary_vert_300.gif2021-06-04 20:10:24200414
./imagesa4_diary_vert_72.gif2021-06-04 20:10:2451963
./imagesa4_diary_vert_72_tb.gif2021-06-04 20:10:2422107
./imagesbg.gif2021-06-04 20:10:244106
./imagesbg.jpg2021-06-04 20:10:241565
./imagesbottom.gif2021-06-04 20:10:24409
./imagesbrowsers.gif2021-06-04 20:10:2459878
./imagescss_image_hover.gif2021-06-04 20:10:2419002
./imagescss_image_hover_bug.gif2021-06-04 20:10:2417775
./imageseclipse_customer_support.gif2021-06-04 20:10:2416504
./imageseclipse_domain_manager.gif2021-06-04 20:10:244334
./imageseclipse_domain_manager_doma.gif2021-06-04 20:10:244853
./imageseclipse_domain_manager_emai.gif2021-06-04 20:10:249444
./imageseclipse_domain_manager_exte.gif2021-06-04 20:10:246700
./imageseclipse_domain_manager_mail.gif2021-06-04 20:10:244278
./imageseclipse_login.gif2021-06-04 20:10:242873
./imageseclipse_my_eclipse.gif2021-06-04 20:10:246615
./imagesie_border_background_bug_01.gif2021-06-04 20:10:244849
./imagesie_border_background_bug_02.gif2021-06-04 20:10:244702
./imagesie_border_background_bug_03.gif2021-06-04 20:10:244857
./imagesie_border_background_bug_04.gif2021-06-04 20:10:244887
./imagestop.gif2021-06-04 20:10:24420
./imagestop.jpg2021-06-04 20:10:241704
./layouts
./layouts001.php2021-06-04 20:10:244472
./layouts002.php2021-06-04 20:10:243947
./layouts003.php2021-06-04 20:10:244052
./layouts004.php2021-06-04 20:10:244014
./layouts005.php2021-06-04 20:10:244001
./layouts006.php2021-06-04 20:10:244010
./layouts007.php2021-06-04 20:10:244005
./layouts008.php2021-06-04 20:10:243946
./layouts009.php2021-06-04 20:10:243965
./layoutscentre_box_columns.php2021-06-04 20:10:243635
./layoutscentre_box_columns_bg.php2021-06-04 20:10:244022
./layoutscentre_box_three_columns_01.php2021-06-04 20:10:243256
./layoutscentre_box_three_columns_02.php2021-06-04 20:10:243889
./layoutscentre_box_three_columns_03.php2021-06-04 20:10:243592
./layoutscentre_box_two_columns.php2021-06-04 20:10:243470
./layoutscss_pattern_matching.php2021-06-04 20:10:24949
./layoutscss_pattern_matching_01.php2021-06-04 20:10:243271
./layoutscss_pattern_matching_02.php2021-06-04 20:10:244131
./layoutscss_pattern_matching_03.php2021-06-04 20:10:242638
./layoutscss_pattern_matching_04.php2021-06-04 20:10:243147
./layoutscss_three_columns_001.php2021-06-04 20:10:242042
./layoutserror_log2021-06-04 20:10:2416434
./layoutsfloat_001.php2021-06-04 20:10:245873
./layoutsfloat_002.php2021-06-04 20:10:243185
./layoutshtml_table_height_example_001.php2021-06-04 20:10:243684
./layoutshtml_table_height_example_002.php2021-06-04 20:10:243701
./layoutshtml_table_height_example_003.php2021-06-04 20:10:243669
./layoutsmenu_html_table.php2021-06-04 20:10:24199
./layoutsmenu_tc.php2021-06-04 20:10:24291
./layouts/3_col_with_nav
./layouts/3_col_with_nav3_col_with_nav.php2021-06-04 20:10:243090
./layouts/3_col_with_navstyle.css2021-06-04 20:10:242617
./php_math_on_string
./php_math_on_stringerror_log2021-06-04 20:10:2410755
./php_math_on_stringmath_on_string_box.php2021-06-04 20:10:247086
./php_math_on_stringmath_on_string_box.txt2021-06-04 20:10:246291
./php_math_on_stringmath_on_string_form.php2021-06-04 20:10:243085
./php_math_on_stringmath_on_string_form.txt2021-06-04 20:10:242168

Share this!