PHP Classes
elePHPant
Icontem

Site Tools: Search, list and view files from a directory

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (20)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2015-01-12 (5 months ago) RSS 2.0 feedNot enough user ratingsTotal: 732 All time: 4,234 This week: 1,256Up
Version License PHP version Categories  
sitetools 1.0GNU General Publi...4.0Files and Folders, Libraries
Description Author  

This package provides several class for performing several types of operations to search, list and view files from a directory. It can:

- Search for a string within all files in the given directory and sub-directories
- List all files in the given directory and its sub-directories
- View all files that are listed in a CSV file on the server

The list of files appears in a form select input. Each file can be viewed in an frame below.

The pages in the list can be displayed automatically as in a slide show. The user can browse the files forwards or backwards.

Each file can be marked. The name of the marked files is saved in a CSV file.

Picture of Nadir Latif
Name: Nadir Latif is available for providing paid consulting. Contact Nadir Latif .
Classes: 14 packages by
Country: Pakistan Pakistan
Age: 32
All time rank: 861 in Pakistan Pakistan
Week rank: 52 Up3 in Pakistan Pakistan Down
Innovation award
Innovation award
Nominee: 9x

Winner: 1x

Details provided by the author  
Made by: Nadir Latif (nadir1915@yahoo.com)

1) Overview:

-These classes provide tools for performing the following tasks. For each task the list of files involved in the task appears below:

a)Search for a string within all files in the current folder(and its subfolders)
	-bottom_cs.php
	-check_string.php (main file)
	-top_cs.php

b)List all files that contain forms which post to a user specified file. All files in the current folder and its subfolders are searched.
	-bottom_cf.php
	-functions_cf.php
	-check_form.php (main file)
	-top_cf.php

c)View all files that are listed in a .csv file on the server. The list of files appears in a drop down and each file can be viewed in the frame below by clicking on its name. The pages in the list can be displayed automatically as in a slide show, or the user can move forward/backward. Each file can be marked. The marked file name is saved in the marked_items.csv file.
	-bottom_pp.php
	-preview_pages.php (main file)
	-top_pp.php
	
d)List all files in the current folder and its sub directories.
	-bottom_lf.php
	-list_files.php (main file)
	-top_lf.php

2) Usage:

-Place these files in a folder on your web server.
-Give write permissions to all the .csv files(i.e 666 permission).
-Access the main file e.g check_forms.php from any web browser.
-The scripts only write to the .csv files on the server and pose no security threat.
-When the user opens one of the main files in his browser, the list of files that appear on the screen will also be saved to the a .csv file on the server. This list can be viewed by opening the preview_pages.php file and selecting a .csv file.
-These tools are usefull for large sites.

-Feel free to contact me for applying this script to your site.
  Files folder image Files  
File Role Description
Files folder imageListFiles (6 files)
Files folder imagePreviewPages (6 files)
Files folder imageSearchString (6 files)
Accessible without login Plain text file readme.txt Doc. Help file
Accessible without login Plain text file LICENSE.txt Doc. Documentation

  Files folder image Files  /  ListFiles  
File Role Description
  Plain text file bottom_lf.php Class Used to list all files in the specified directory
  Accessible without login Plain text file file_list.csv Data Used to save the list of web pages
  Accessible without login Plain text file list_files.php Data Used to list all files in the specified directory
  Plain text file query_builder.php Class Database functions
  Plain text file tbssql_mysql.php Class Database functions
  Accessible without login Plain text file top_lf.php Aux. Used to list all files in the specified directory

  Files folder image Files  /  PreviewPages  
File Role Description
  Accessible without login Plain text file bottom_pp.php Aux. Used to preview a list of web pages in a .csv file
  Accessible without login Plain text file file_list.csv Data Used to save the list of web pages to be previewed
  Accessible without login Plain text file marked_items.csv Data Used to save the list of web pages that were marked by the user
  Accessible without login Plain text file preview_pages.php Data Used to preview a list of web pages in a .csv file
  Accessible without login Plain text file Sajax.php Aux. Provides ajax functions
  Plain text file top_pp.php Class Used to preview a list of web pages in a .csv file

  Files folder image Files  /  SearchString  
File Role Description
  Accessible without login Plain text file bottom_cs.php Example Used to search the specified folder for a string
  Accessible without login Plain text file check_forms.php Example main file used to run the script
  Accessible without login Plain text file check_string.php Data Used to search the specified folder for a string
  Plain text file functions_cs.php Class Used to search the specified folder for a string
  Accessible without login Plain text file top_cs.php Aux. Used to search the specified folder for a string
  Accessible without login Plain text file valid_files.csv Data Used to save the list of web pages containing the search string

 Version Control Unique User Downloads Download Rankings  
 100%Total:732All time:4,234
 This week:0This week:1,256Up