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.php2015-09-08 08:57:061400
./adsense_competitive_ad_filter.php2015-09-08 08:57:065144
./affirmations.php2015-09-08 08:57:063763
./ahttpd_dead_but_subsys_locked.php2015-09-08 08:57:061850
./apache_pcfg_openfile_unable_to_check_htaccess.php2015-09-08 08:57:061637
./apache_windows_virtualhost.php2015-09-08 08:57:062197
./browsers_sizes.php2015-09-08 08:57:06646
./centre_box_columns.php2015-09-08 08:57:061680
./character_iso-8859-1.php2015-09-08 08:57:0628968
./chitika.php2015-09-08 08:57:062348
./code_reformat.php2015-09-08 08:57:062365
./colour_table.php2015-09-08 08:57:062956
./contact_form.php2015-09-08 08:57:0611904
./contact_form.txt2012-12-23 13:41:455809
./contact_form.txt22012-12-23 13:41:456398
./css_border_background_bug.php2015-09-08 08:57:064850
./css_class_float.php2015-09-08 08:57:062490
./css_class_float_min_width.php2015-09-08 08:57:062317
./css_class_float_width.php2015-09-08 08:57:062307
./css_class_name_float.php2015-09-08 08:57:063387
./css_colour_tool.php2015-09-08 08:57:066350
./css_img_hover.php2015-09-08 08:57:063364
./dir_listing.php2015-09-08 08:57:063082
./directory_file_listing_with_sizes.php2015-09-08 08:57:062523
./dynamic_content_using_innerHTML_in_IE_and_NN6.php2015-09-08 08:57:062328
./eclipse_configuring_domain_names.php2015-09-08 08:57:062280
./email_accounts.php2015-09-08 08:57:061389
./email_dont_delete_this_message.php2015-09-08 08:57:061424
./email_reformat.php2015-09-08 08:57:063009
./email_reformat_token.php2015-09-08 08:57:062413
./email_send_document_as_html_email.php2015-09-08 08:57:061403
./email_to_a_friend.php2015-09-08 08:57:064730
./err_pop_eof_or_io_error_on_a_users_login.php2015-09-08 08:57:062029
./error_log2018-12-12 16:41:3740249
./examine_images_report_filesize.php2015-09-08 08:57:064214
./excel_find_question_mark.php2015-09-08 08:57:061758
./excel_keyboard_shortcuts.php2015-09-08 08:57:065588
./excel_large_number_error.php2015-09-08 08:57:062027
./excel_large_number_paste.php2015-09-08 08:57:061682
./excel_password_protect.php2015-09-08 08:57:062495
./excel_sentance_case.php2015-09-08 08:57:061596
./excite_plays_hide_the_free_submit_link.php2015-09-08 08:57:061287
./explode_for_meta_keywords.php2015-09-08 08:57:067949
./favicon_ico.php2015-09-08 08:57:061027
./file_listing.php2015-09-08 08:57:064021
./file_listing_alter.php2015-09-08 08:57:066547
./file_system.php2015-09-08 08:57:062445
./file_system_now.php2015-09-08 08:57:062251
./filename_conversion_form.php2015-09-08 08:57:063351
./firefox.php2015-09-08 08:57:062460
./firefox_apostrophe_bug.php2015-09-08 08:57:063016
./firefox_chrome_registration_failed.php2015-09-08 08:57:061586
./firefox_enable_spelling_check.php2015-09-08 08:57:061777
./firefox_run_as_administrator.php2015-09-08 08:57:06907
./firefox_tips.php2015-09-08 08:57:061157
./flash_text_some_characters_disappear.php2015-09-08 08:57:061742
./flash_text_under_mask.php2015-09-08 08:57:061718
./fun_web_products.php2018-01-08 12:18:3419920
./fun_web_products_for_webmasters.php2015-09-08 08:57:063100
./game_walkthroughs_hints_tips.php2015-09-08 08:57:062059
./gmail_alternative_email_address.php2015-09-08 08:57:062079
./gmail_keyboard_shortcuts.php2015-09-08 08:57:067117
./gmail_label_sorting.php2015-09-08 08:57:06974
./google-search-for-seo-research.php2015-09-08 08:57:0630513
./google_universal_search_video_results.php2015-09-08 08:57:062775
./greasemonkey.php2015-09-08 08:57:062553
./guide.php2015-09-08 08:57:0621769
./how_to_win_friends_and_influence_people.php2015-09-08 08:57:063352
./html_fieldset.php2015-09-08 08:57:061281
./html_link_element.php2015-09-08 08:57:061771
./html_table_height.php2015-09-08 08:57:064319
./images_test_filesize.php2015-09-08 08:57:064543
./images_test_filesize.txt2012-12-23 13:41:453577
./images_the_halo_effect.php2015-09-08 08:57:06975
./index-js-tests.bak2015-12-29 18:05:254523
./index.bak2012-12-23 13:41:454277
./index.php2016-05-03 20:44:004187
./internet_explorer_tips.php2015-09-08 08:57:062494
./javascript_addfavorite.php2015-09-08 08:57:061081
./javascript_moveto.php2015-09-08 08:57:062066
./javascript_new_window_full_screen.php2015-09-08 08:57:061662
./javascript_open_new_window_form.php2015-09-08 08:57:065309
./javascript_radio_totals.php2015-09-08 08:57:064325
./javascript_screen_window_properties.php2015-09-08 08:57:062680
./javascript_screen_window_properties_2.php2015-09-08 08:57:065951
./javascript_search_engine_01.php2015-09-08 08:57:062099
./komodo_default_key_settings.php2015-09-08 08:57:061640
./labels_template.php2015-09-08 08:57:065835
./linux_bash_integer_expression_expected.php2015-09-08 08:57:06813
./linux_find_exclude_multiple_directories.php2015-09-08 08:57:061830
./linux_find_files_edited_today.php2015-09-08 08:57:061261
./linux_find_prune_and_ignore_directories.php2015-09-08 08:57:062227
./linux_find_prune_directory.php2015-09-08 08:57:061372
./linux_find_string_files.php2015-09-08 08:57:062514
./linux_find_string_in_files.php2015-09-08 08:57:061208
./linux_grep.php2015-09-08 08:57:061413
./linux_load_average_check.php2016-08-28 22:58:181383
./linux_ls_awk_totals.php2015-09-08 08:57:061810
./linux_parsing_log_file_for_links.php2015-09-08 08:57:061422
./linux_remove_duplicate_lines_with_uniq.php2015-09-08 08:57:061658
./linux_rename_directory.php2015-09-08 08:57:061600
./linux_rename_files.php2015-09-08 08:57:061615
./linux_search_and_replace_multiple_files.php2015-09-08 08:57:062011
./linux_send_html_email_from_command_line.php2015-09-08 08:57:061448
./linux_vi_string_substitution.php2015-09-08 08:57:061359
./local_55768.xml2012-12-24 11:50:27411
./md5_string.php2015-09-08 08:57:062617
./md5_unique_sub_string.php2015-09-08 08:57:061320
./microsoft_word_tips.php2015-09-08 08:57:062137
./mutt_email_client.php2015-09-08 08:57:06974
./mysql_date_calulation.php2015-09-08 08:57:062013
./mysql_day_of_year.php2015-09-08 08:57:061995
./mysql_distinct_or_group_by.php2015-09-08 08:57:060
./mysql_errno_145.php2015-09-08 08:57:061108
./mysql_left_outer_join.php2015-09-08 08:57:061306
./mysql_select_into_file.php2015-09-08 08:57:061409
./mysql_self_join.php2015-09-08 08:57:064367
./netscape_6_css_01.php2015-09-08 08:57:061505
./online_email_reformat.php2015-09-08 08:57:062611
./page_bottom.php2015-09-08 08:57:061316
./php_checkbox_check.php2015-09-08 08:57:061343
./php_checkdnsrr.php2015-09-08 08:57:061700
./php_contact_form.php2015-09-08 08:57:069417
./php_contact_form_anti_spam.php2015-09-08 08:57:061326
./php_convert_string_to_title_case.php2015-09-08 08:57:061856
./php_convert_url_to_link.php2015-09-08 08:57:061773
./php_create_simple_form_from_db.php2015-09-08 08:57:061406
./php_design_random_image_generator.php2015-09-08 08:57:062310
./php_gethostbyaddr.php2015-09-08 08:57:061324
./php_gethostbyaddr_googlebot.php2015-09-08 08:57:064537
./php_google_referer.php2015-09-08 08:57:062004
./php_javascript_passing_values_to_new_window_in_url.php2015-09-08 08:57:063052
./php_list_a_directory.php2015-09-08 08:57:062565
./php_multi_dimensional_arrays.php2015-09-08 08:57:061979
./php_php_self_non_printable_character.php2015-09-08 08:57:061294
./php_prev_next_array.php2015-09-08 08:57:063216
./php_prohibit_access_to_pages_based_on_ip_address.php2015-09-08 08:57:062032
./php_read_titles.php2015-09-08 09:07:042374
./php_read_titles_code.php2015-09-08 08:57:063285
./php_select_options_form.php2015-09-08 08:57:063006
./php_uk_mailing_list.php2015-09-08 08:57:062132
./php_url_count_check_for_comment_spam.php2015-09-08 08:57:062329
./php_what_does_php_stand_for.php2015-09-08 08:57:061183
./pig_latin_ongo_bongo_generator.php2015-09-08 08:57:062216
./pine_delete_on_date.php2015-09-08 08:57:061540
./piping_commands_find_grep_sed.php2015-09-08 08:57:063136
./ppcthink.txt2012-12-23 13:41:453784
./procmail_extraneous_locallockfile_ignored.php2015-09-08 08:57:062272
./productivity.php2015-09-08 08:57:061960
./remove_special_characters.php2015-09-08 08:57:066175
./remove_special_characters_basic.php2015-09-08 08:57:061539
./ror.xml2012-12-23 13:41:4565197
./search_engines_read_php.php2015-09-08 08:57:061967
./seo_create_link_form.php2015-09-08 08:57:063563
./seo_links_on_page_javascript.php2015-09-08 08:57:061989
./seo_wheres_it_rank.txt2012-12-23 13:41:454054
./server_email_554.php2015-09-08 08:57:062829
./server_misconfiguration.php2015-09-08 08:57:061776
./sort_file.php2015-09-08 08:57:061755
./spelling_errors.php2015-09-08 08:57:061040
./spyware.php2015-09-08 08:57:062860
./stumbleupon_blog_intergration.php2015-09-08 08:57:067996
./terminal_window_freezes.php2015-09-08 08:57:06983
./the_pop3_mail_server_is_not_responding.php2015-09-08 08:57:062100
./thunderbird_save_search_as_folder.php2015-09-08 08:57:06627
./tips_banner.php2015-09-08 08:57:061502
./usability_113_guidelines.php2015-09-08 08:57:064870
./usability_bbc_redesign_the_glass_wall.php2015-09-08 08:57:062767
./using_email.php2015-09-08 08:57:069289
./vim_block_editing.php2015-09-08 08:57:061640
./vim_general_tips.php2015-09-08 08:57:061082
./whats_my_ip_address.php2015-09-08 08:57:06807
./wordpress_stumbleupon_intergration.php2015-09-08 08:57:061435
./clickbank
./clickbankadsense_gold.php2012-12-23 13:41:4576
./clickbankadsense_ready_150_adsense_websites.php2012-12-23 13:41:4574
./clickbankadware_alert.php2012-12-23 13:41:4574
./clickbankaffirmations_software.php2012-12-23 13:41:4577
./clickbankarticle_directory_pro.php2012-12-23 13:41:4572
./clickbankclickbank.php2012-12-23 13:41:4575
./clickbankdaves_cool_little_website.php2012-12-23 13:41:4575
./clickbankerrkiller.php2012-12-23 13:41:4576
./clickbankerror_doctor_registry_repair_software.php2012-12-23 13:41:4576
./clickbankerror_log2015-12-09 19:30:09499545
./clickbankindex.php2012-12-23 13:41:455539
./clickbankkeyword_elite.php2012-12-23 13:41:4574
./clickbankmichael_cheneys_adsense_videos.php2012-12-23 13:41:4576
./clickbanknoadware.php2012-12-23 13:41:4589
./clickbanknoadware_remove_harmful_adware_spyware_trojans_dialers_and_worms.php2012-12-23 13:41:4575
./clickbankrefer.php2012-12-23 13:41:4575
./clickbankregistry_fix_Repair_Clean_Up_File_Fix_For_Windows.php2012-12-23 13:41:4573
./clickbankspywarebot_search_and_destroy.php2012-12-23 13:41:4577
./clickbankthe_power_of_positive_habits_e-book.php2012-12-23 13:41:4573
./contacts
./email_obfuscation_for_spambots
./email_obfuscation_for_spambotscontact.php2012-12-24 11:50:274133
./email_obfuscation_for_spambotscontact.txt2012-12-23 13:41:455470
./email_obfuscation_for_spambotscontact_example.php2012-12-23 13:41:458325
./email_obfuscation_for_spambotserror_log2015-12-09 20:19:16258060
./email_obfuscation_for_spambotsindex.php2012-12-24 11:50:27923
./email_obfuscation_for_spambotsspam_menu.php2012-12-24 11:50:27391
./email_obfuscation_for_spambotsspambot_00.php2012-12-24 11:50:27668
./email_obfuscation_for_spambotsspambot_01.php2012-12-24 11:50:271671
./email_obfuscation_for_spambotsspambot_02.php2012-12-24 11:50:271873
./email_obfuscation_for_spambotsspambot_03.php2012-12-24 11:50:271691
./email_obfuscation_for_spambotsspambot_04.php2012-12-24 11:50:271145
./flash_text_under_mask_files
./flash_text_under_mask_filestext_mask.fla2012-12-24 11:50:2729184
./flash_text_under_mask_filestext_mask.html2012-12-24 11:50:271335
./flash_text_under_mask_filestext_mask.swf2012-12-24 11:50:2720539
./images
./imagesa4_diary_vert_300.gif2012-12-24 11:50:27200414
./imagesa4_diary_vert_72.gif2012-12-24 11:50:2751963
./imagesa4_diary_vert_72_tb.gif2012-12-24 11:50:2722107
./imagesbg.gif2012-12-24 11:50:274106
./imagesbg.jpg2012-12-24 11:50:271565
./imagesbottom.gif2012-12-24 11:50:27409
./imagesbrowsers.gif2012-12-24 11:50:2759878
./imagescss_image_hover.gif2012-12-24 11:50:2719002
./imagescss_image_hover_bug.gif2012-12-24 11:50:2717775
./imageseclipse_customer_support.gif2012-12-24 11:50:2716504
./imageseclipse_domain_manager.gif2012-12-24 11:50:274334
./imageseclipse_domain_manager_doma.gif2012-12-24 11:50:274853
./imageseclipse_domain_manager_emai.gif2012-12-24 11:50:279444
./imageseclipse_domain_manager_exte.gif2012-12-24 11:50:276700
./imageseclipse_domain_manager_mail.gif2012-12-24 11:50:274278
./imageseclipse_login.gif2012-12-24 11:50:272873
./imageseclipse_my_eclipse.gif2012-12-24 11:50:276615
./imagesie_border_background_bug_01.gif2012-12-24 11:50:274849
./imagesie_border_background_bug_02.gif2012-12-24 11:50:274702
./imagesie_border_background_bug_03.gif2012-12-24 11:50:274857
./imagesie_border_background_bug_04.gif2012-12-24 11:50:274887
./imagestop.gif2012-12-24 11:50:27420
./imagestop.jpg2012-12-24 11:50:271704
./layouts
./layouts001.php2012-12-24 11:50:274472
./layouts002.php2012-12-24 11:50:273947
./layouts003.php2012-12-24 11:50:274052
./layouts004.php2012-12-24 11:50:274014
./layouts005.php2012-12-24 11:50:274001
./layouts006.php2012-12-24 11:50:274010
./layouts007.php2012-12-24 11:50:274005
./layouts008.php2012-12-24 11:50:273946
./layouts009.php2012-12-24 11:50:273965
./layoutscentre_box_columns.php2012-12-23 13:41:453635
./layoutscentre_box_columns_bg.php2012-12-23 13:41:454022
./layoutscentre_box_three_columns_01.php2012-12-23 13:41:453256
./layoutscentre_box_three_columns_02.php2012-12-23 13:41:453889
./layoutscentre_box_three_columns_03.php2012-12-23 13:41:453592
./layoutscentre_box_two_columns.php2012-12-24 11:50:273470
./layoutscss_pattern_matching.php2012-12-24 11:50:27949
./layoutscss_pattern_matching_01.php2012-12-24 11:50:273271
./layoutscss_pattern_matching_02.php2012-12-24 11:50:274131
./layoutscss_pattern_matching_03.php2012-12-24 11:50:272638
./layoutscss_pattern_matching_04.php2012-12-24 11:50:273147
./layoutscss_three_columns_001.php2012-12-24 11:50:272042
./layoutserror_log2015-12-09 20:22:11733890
./layoutsfloat_001.php2012-12-24 11:50:275873
./layoutsfloat_002.php2012-12-24 11:50:273185
./layoutshtml_table_height_example_001.php2012-12-23 13:41:453684
./layoutshtml_table_height_example_002.php2012-12-23 13:41:453701
./layoutshtml_table_height_example_003.php2012-12-23 13:41:453669
./layoutsmenu_html_table.php2012-12-23 13:41:45199
./layoutsmenu_tc.php2012-12-24 11:50:27291
./layouts/3_col_with_nav
./layouts/3_col_with_nav3_col_with_nav.php2012-12-23 13:41:453090
./layouts/3_col_with_naverror_log2015-12-05 00:05:4918870
./layouts/3_col_with_navstyle.css2012-12-23 13:41:452617
./php_math_on_string
./php_math_on_stringerror_log2015-12-08 08:38:4634170
./php_math_on_stringmath_on_string_box.php2012-12-23 13:41:457086
./php_math_on_stringmath_on_string_box.txt2012-12-23 13:41:456291
./php_math_on_stringmath_on_string_form.php2012-12-23 13:41:453085
./php_math_on_stringmath_on_string_form.txt2012-12-23 13:41:452168

Share this!  



Favicon Ico | File Listing | File Listing Alter


 

  Tips | Home | Search | Contact

Link here: