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.php2024-11-08 18:22:051400
./adsense_competitive_ad_filter.php2024-11-08 18:22:055144
./affirmations.php2024-11-08 18:22:053763
./ahttpd_dead_but_subsys_locked.php2024-11-08 18:22:051850
./apache_pcfg_openfile_unable_to_check_htaccess.php2024-11-08 18:22:051637
./apache_windows_virtualhost.php2024-11-08 18:22:052197
./browsers_sizes.php2024-11-08 18:22:05646
./centre_box_columns.php2024-11-08 18:22:051680
./character_iso-8859-1.php2024-11-08 18:22:0528968
./chitika.php2024-11-08 18:22:052348
./code_reformat.php2024-11-08 18:22:052365
./colour_table.php2024-11-08 18:22:052956
./contact_form.php2024-11-08 18:22:0511904
./contact_form.txt2024-11-08 18:22:055809
./contact_form.txt22024-11-08 18:22:056398
./css_border_background_bug.php2024-11-08 18:22:054850
./css_class_float.php2024-11-08 18:22:052490
./css_class_float_min_width.php2024-11-08 18:22:052317
./css_class_float_width.php2024-11-08 18:22:052307
./css_class_name_float.php2024-11-08 18:22:053387
./css_colour_tool.php2024-11-08 18:22:056350
./css_img_hover.php2024-11-08 18:22:053364
./dir_listing.php2024-11-08 18:22:053082
./directory_file_listing_with_sizes.php2024-11-08 18:22:052523
./dynamic_content_using_innerHTML_in_IE_and_NN6.php2024-11-08 18:22:052328
./eclipse_configuring_domain_names.php2024-11-08 18:22:052280
./email_accounts.php2024-11-08 18:22:051389
./email_dont_delete_this_message.php2024-11-08 18:22:051424
./email_reformat.php2024-11-08 18:22:053009
./email_reformat_token.php2024-11-08 18:22:052413
./email_send_document_as_html_email.php2024-11-08 18:22:051403
./err_pop_eof_or_io_error_on_a_users_login.php2024-11-08 18:22:052029
./examine_images_report_filesize.php2024-11-08 18:22:054214
./excel_find_question_mark.php2024-11-08 18:22:051758
./excel_keyboard_shortcuts.php2024-11-08 18:22:055588
./excel_large_number_error.php2024-11-08 18:22:052027
./excel_large_number_paste.php2024-11-08 18:22:051682
./excel_password_protect.php2024-11-08 18:22:052093
./excel_sentance_case.php2024-11-08 18:22:051596
./excite_plays_hide_the_free_submit_link.php2024-11-08 18:22:051287
./explode_for_meta_keywords.php2024-11-08 18:22:057949
./favicon_ico.php2024-11-08 18:22:051027
./file_listing.php2024-11-08 18:22:054021
./file_listing_alter.php2024-11-08 18:22:056547
./file_system.php2024-11-08 18:22:052445
./file_system_now.php2024-11-08 18:22:052251
./filename_conversion_form.php2024-11-08 18:22:053351
./firefox.php2024-11-08 18:22:052460
./firefox_apostrophe_bug.php2024-11-08 18:22:053016
./firefox_chrome_registration_failed.php2024-11-08 18:22:051586
./firefox_enable_spelling_check.php2024-11-08 18:22:051777
./firefox_run_as_administrator.php2024-11-08 18:22:05907
./firefox_tips.php2024-11-08 18:22:051157
./flash_text_some_characters_disappear.php2024-11-08 18:22:051742
./flash_text_under_mask.php2024-11-08 18:22:051718
./fun_web_products.php2024-11-08 18:22:0519920
./fun_web_products_for_webmasters.php2024-11-08 18:22:053100
./game_walkthroughs_hints_tips.php2024-11-08 18:22:052059
./gmail_alternative_email_address.php2024-11-08 18:22:052079
./gmail_keyboard_shortcuts.php2024-11-08 18:22:057117
./gmail_label_sorting.php2024-11-08 18:22:05974
./google-search-for-seo-research.php2024-11-08 18:22:0530513
./google_universal_search_video_results.php2024-11-08 18:22:052775
./greasemonkey.php2024-11-08 18:22:052553
./guide.php2024-11-08 18:22:0521769
./how_to_win_friends_and_influence_people.php2024-11-08 18:22:053352
./html_fieldset.php2024-11-08 18:22:051281
./html_link_element.php2024-11-08 18:22:051771
./html_table_height.php2024-11-08 18:22:054319
./images_test_filesize.php2024-11-08 18:22:054543
./images_test_filesize.txt2024-11-08 18:22:053577
./images_the_halo_effect.php2024-11-08 18:22:05975
./index-js-tests.bak2024-11-08 18:22:054523
./index.bak2024-11-08 18:22:054277
./index.php2024-11-08 18:22:054187
./internet_explorer_tips.php2024-11-08 18:22:052494
./javascript_addfavorite.php2024-11-08 18:22:051081
./javascript_moveto.php2024-11-08 18:22:052066
./javascript_new_window_full_screen.php2024-11-08 18:22:051662
./javascript_open_new_window_form.php2024-11-08 18:22:055309
./javascript_radio_totals.php2024-11-08 18:22:054325
./javascript_screen_window_properties.php2024-11-08 18:22:052680
./javascript_screen_window_properties_2.php2024-11-08 18:22:055951
./javascript_search_engine_01.php2024-11-08 18:22:052099
./komodo_default_key_settings.php2024-11-08 18:22:051640
./labels_template.php2024-11-08 18:22:055835
./linux_bash_integer_expression_expected.php2024-11-08 18:22:05813
./linux_find_exclude_multiple_directories.php2024-11-08 18:22:051830
./linux_find_files_edited_today.php2024-11-08 18:22:051261
./linux_find_prune_and_ignore_directories.php2024-11-08 18:22:052227
./linux_find_prune_directory.php2024-11-08 18:22:051372
./linux_find_string_files.php2024-11-08 18:22:052514
./linux_find_string_in_files.php2024-11-08 18:22:051208
./linux_grep.php2024-11-08 18:22:051413
./linux_load_average_check.php2024-11-08 18:22:051383
./linux_ls_awk_totals.php2024-11-08 18:22:051810
./linux_parsing_log_file_for_links.php2024-11-08 18:22:051422
./linux_remove_duplicate_lines_with_uniq.php2024-11-08 18:22:051658
./linux_rename_directory.php2024-11-08 18:22:051600
./linux_rename_files.php2024-11-08 18:22:051615
./linux_search_and_replace_multiple_files.php2024-11-08 18:22:052011
./linux_send_html_email_from_command_line.php2024-11-08 18:22:051448
./linux_vi_string_substitution.php2024-11-08 18:22:051359
./local_55768.xml2024-11-08 18:22:05411
./md5_string.php2024-11-08 18:22:052617
./md5_unique_sub_string.php2024-11-08 18:22:051320
./microsoft_word_tips.php2024-11-08 18:22:052137
./mutt_email_client.php2024-11-08 18:22:05974
./mysql_date_calulation.php2024-11-08 18:22:052013
./mysql_day_of_year.php2024-11-08 18:22:051995
./mysql_distinct_or_group_by.php2024-11-08 18:22:050
./mysql_errno_145.php2024-11-08 18:22:051108
./mysql_left_outer_join.php2024-11-08 18:22:051306
./mysql_select_into_file.php2024-11-08 18:22:051409
./mysql_self_join.php2024-11-08 18:22:054367
./netscape_6_css_01.php2024-11-08 18:22:051505
./online_email_reformat.php2024-11-08 18:22:052611
./page_bottom.php2024-11-08 18:22:051316
./php_checkbox_check.php2024-11-08 18:22:051343
./php_checkdnsrr.php2024-11-08 18:22:051700
./php_contact_form.php2024-11-08 18:22:059417
./php_contact_form_anti_spam.php2024-11-08 18:22:051326
./php_convert_string_to_title_case.php2024-11-08 18:22:051856
./php_convert_url_to_link.php2024-11-08 18:22:051773
./php_create_simple_form_from_db.php2024-11-08 18:22:051406
./php_design_random_image_generator.php2024-11-08 18:22:052310
./php_gethostbyaddr.php2024-11-08 18:22:051324
./php_gethostbyaddr_googlebot.php2024-11-08 18:22:054537
./php_google_referer.php2024-11-08 18:22:052004
./php_javascript_passing_values_to_new_window_in_url.php2024-11-08 18:22:053052
./php_list_a_directory.php2024-11-08 18:22:052565
./php_multi_dimensional_arrays.php2024-11-08 18:22:051979
./php_php_self_non_printable_character.php2024-11-08 18:22:051294
./php_prev_next_array.php2024-11-08 18:22:053216
./php_prohibit_access_to_pages_based_on_ip_address.php2024-11-08 18:22:052032
./php_read_titles.php2024-11-08 18:22:052374
./php_read_titles_code.php2024-11-08 18:22:053285
./php_select_options_form.php2024-11-08 18:22:053006
./php_uk_mailing_list.php2024-11-08 18:22:052132
./php_url_count_check_for_comment_spam.php2024-11-08 18:22:052329
./php_what_does_php_stand_for.php2024-11-08 18:22:051183
./pig_latin_ongo_bongo_generator.php2024-11-08 18:22:052216
./pine_delete_on_date.php2024-11-08 18:22:051540
./piping_commands_find_grep_sed.php2024-11-08 18:22:053136
./ppcthink.txt2024-11-08 18:22:053784
./procmail_extraneous_locallockfile_ignored.php2024-11-08 18:22:052272
./productivity.php2024-11-08 18:22:051960
./remove_special_characters.php2024-11-08 18:22:056175
./remove_special_characters_basic.php2024-11-08 18:22:051539
./ror.xml2024-11-08 18:22:0565197
./search_engines_read_php.php2024-11-08 18:22:051967
./seo_create_link_form.php2024-11-08 18:22:053563
./seo_links_on_page_javascript.php2024-11-08 18:22:051989
./seo_wheres_it_rank.txt2024-11-08 18:22:054054
./server_email_554.php2024-11-08 18:22:052829
./server_misconfiguration.php2024-11-08 18:22:051776
./sort_file.php2024-11-08 18:22:051755
./spelling_errors.php2024-11-08 18:22:051040
./spyware.php2024-11-08 18:22:052860
./stumbleupon_blog_intergration.php2024-11-08 18:22:057996
./terminal_window_freezes.php2024-11-08 18:22:05983
./the_pop3_mail_server_is_not_responding.php2024-11-08 18:22:052100
./thunderbird_save_search_as_folder.php2024-11-08 18:22:05627
./tips_banner.php2024-11-08 18:22:051502
./usability_113_guidelines.php2024-11-08 18:22:054870
./usability_bbc_redesign_the_glass_wall.php2024-11-08 18:22:052767
./using_email.php2024-11-08 18:22:059289
./vim_block_editing.php2024-11-08 18:22:051640
./vim_general_tips.php2024-11-08 18:22:051082
./whats_my_ip_address.php2024-11-08 18:22:05807
./wordpress_stumbleupon_intergration.php2024-11-08 18:22:051435
./clickbank
./clickbankadsense_gold.php2024-11-08 18:22:0576
./clickbankadsense_ready_150_adsense_websites.php2024-11-08 18:22:0574
./clickbankadware_alert.php2024-11-08 18:22:0574
./clickbankaffirmations_software.php2024-11-08 18:22:0577
./clickbankarticle_directory_pro.php2024-11-08 18:22:0572
./clickbankclickbank.php2024-11-08 18:22:0575
./clickbankdaves_cool_little_website.php2024-11-08 18:22:0575
./clickbankerrkiller.php2024-11-08 18:22:0576
./clickbankerror_doctor_registry_repair_software.php2024-11-08 18:22:0576
./clickbankindex.php2024-11-08 18:22:055539
./clickbankkeyword_elite.php2024-11-08 18:22:0574
./clickbankmichael_cheneys_adsense_videos.php2024-11-08 18:22:0576
./clickbanknoadware.php2024-11-08 18:22:0589
./clickbanknoadware_remove_harmful_adware_spyware_trojans_dialers_and_worms.php2024-11-08 18:22:0575
./clickbankrefer.php2024-11-08 18:22:0575
./clickbankregistry_fix_Repair_Clean_Up_File_Fix_For_Windows.php2024-11-08 18:22:0573
./clickbankspywarebot_search_and_destroy.php2024-11-08 18:22:0577
./clickbankthe_power_of_positive_habits_e-book.php2024-11-08 18:22:0573
./contacts
./email_obfuscation_for_spambots
./email_obfuscation_for_spambotscontact.php2024-11-08 18:22:054133
./email_obfuscation_for_spambotscontact.txt2024-11-08 18:22:055470
./email_obfuscation_for_spambotscontact_example.php2024-11-08 18:22:058325
./email_obfuscation_for_spambotsindex.php2024-11-08 18:22:05923
./email_obfuscation_for_spambotsspam_menu.php2024-11-08 18:22:05391
./email_obfuscation_for_spambotsspambot_00.php2024-11-08 18:22:05668
./email_obfuscation_for_spambotsspambot_01.php2024-11-08 18:22:051671
./email_obfuscation_for_spambotsspambot_02.php2024-11-08 18:22:051873
./email_obfuscation_for_spambotsspambot_03.php2024-11-08 18:22:051691
./email_obfuscation_for_spambotsspambot_04.php2024-11-08 18:22:051145
./flash_text_under_mask_files
./flash_text_under_mask_filestext_mask.fla2024-11-08 18:22:0529184
./flash_text_under_mask_filestext_mask.html2024-11-08 18:22:051335
./flash_text_under_mask_filestext_mask.swf2024-11-08 18:22:0520539
./images
./imagesa4_diary_vert_300.gif2024-11-08 18:22:05200414
./imagesa4_diary_vert_72.gif2024-11-08 18:22:0551963
./imagesa4_diary_vert_72_tb.gif2024-11-08 18:22:0522107
./imagesbg.gif2024-11-08 18:22:054106
./imagesbg.jpg2024-11-08 18:22:051565
./imagesbottom.gif2024-11-08 18:22:05409
./imagesbrowsers.gif2024-11-08 18:22:0559878
./imagescss_image_hover.gif2024-11-08 18:22:0519002
./imagescss_image_hover_bug.gif2024-11-08 18:22:0517775
./imageseclipse_customer_support.gif2024-11-08 18:22:0516504
./imageseclipse_domain_manager.gif2024-11-08 18:22:054334
./imageseclipse_domain_manager_doma.gif2024-11-08 18:22:054853
./imageseclipse_domain_manager_emai.gif2024-11-08 18:22:059444
./imageseclipse_domain_manager_exte.gif2024-11-08 18:22:056700
./imageseclipse_domain_manager_mail.gif2024-11-08 18:22:054278
./imageseclipse_login.gif2024-11-08 18:22:052873
./imageseclipse_my_eclipse.gif2024-11-08 18:22:056615
./imagesie_border_background_bug_01.gif2024-11-08 18:22:054849
./imagesie_border_background_bug_02.gif2024-11-08 18:22:054702
./imagesie_border_background_bug_03.gif2024-11-08 18:22:054857
./imagesie_border_background_bug_04.gif2024-11-08 18:22:054887
./imagestop.gif2024-11-08 18:22:05420
./imagestop.jpg2024-11-08 18:22:051704
./layouts
./layouts001.php2024-11-08 18:22:054472
./layouts002.php2024-11-08 18:22:053947
./layouts003.php2024-11-08 18:22:054052
./layouts004.php2024-11-08 18:22:054014
./layouts005.php2024-11-08 18:22:054001
./layouts006.php2024-11-08 18:22:054010
./layouts007.php2024-11-08 18:22:054005
./layouts008.php2024-11-08 18:22:053946
./layouts009.php2024-11-08 18:22:053965
./layoutscentre_box_columns.php2024-11-08 18:22:053635
./layoutscentre_box_columns_bg.php2024-11-08 18:22:054022
./layoutscentre_box_three_columns_01.php2024-11-08 18:22:053256
./layoutscentre_box_three_columns_02.php2024-11-08 18:22:053889
./layoutscentre_box_three_columns_03.php2024-11-08 18:22:053592
./layoutscentre_box_two_columns.php2024-11-08 18:22:053470
./layoutscss_pattern_matching.php2024-11-08 18:22:05949
./layoutscss_pattern_matching_01.php2024-11-08 18:22:053271
./layoutscss_pattern_matching_02.php2024-11-08 18:22:054131
./layoutscss_pattern_matching_03.php2024-11-08 18:22:052638
./layoutscss_pattern_matching_04.php2024-11-08 18:22:053147
./layoutscss_three_columns_001.php2024-11-08 18:22:052042
./layoutsfloat_001.php2024-11-08 18:22:055873
./layoutsfloat_002.php2024-11-08 18:22:053185
./layoutshtml_table_height_example_001.php2024-11-08 18:22:053684
./layoutshtml_table_height_example_002.php2024-11-08 18:22:053701
./layoutshtml_table_height_example_003.php2024-11-08 18:22:053669
./layoutsmenu_html_table.php2024-11-08 18:22:05199
./layoutsmenu_tc.php2024-11-08 18:22:05291
./layouts/3_col_with_nav
./layouts/3_col_with_nav3_col_with_nav.php2024-11-08 18:22:053090
./layouts/3_col_with_navstyle.css2024-11-08 18:22:052617
./php_math_on_string
./php_math_on_stringmath_on_string_box.php2024-11-08 18:22:057086
./php_math_on_stringmath_on_string_box.txt2024-11-08 18:22:056291
./php_math_on_stringmath_on_string_form.php2024-11-08 18:22:053085
./php_math_on_stringmath_on_string_form.txt2024-11-08 18:22:052168

Share this!