WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Mobile Dev World

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Finds files on your site, uses UNIX find command.
Categories : Complete Programs, Filesystem, PHP Click here to Update Your Picture
Marcus Xenakis
Date : Apr 29th 1999
Grade : Be the 1st to grade this Code Example
Viewed : 10083
File : finder.zip
Images : No Images for this code example.
Search : More code by Marcus Xenakis
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

#! /usr/bin/php
<HTML>
<HEAD>
<TITLE>Find <?php echo "$parm" ?></TITLE>
</HEAD>

<BODY>
<b><font face=arial size=+2>Find <?php echo "$parm" ?></font></b>
<font face=arial>
<br><?php print(date("m/d/y h:i")) ?>

<?php
// *****************************************************//
// //
// Author - Marcus S. Xenakis 4/28/99 //
// marcus@xenakis.net //
// //
// This simple PHP script only runs on a UNIX server. //
// It is based on the "find" command. //
// It should reside in your web server root directory //
// //
// This program finds files on the sitebased upon the //
// passed paramter (parm) or the promted filespec. //
// The filespec can be a complete name or it may //
// wildcards. //
// //
// This program is disigned to call two other php //
// scripts, //
// usage.php: which displays directory usage. //
// directory.php: which displays dir lists. //
// //
// There is one modifications required in order in //
// order to run this script. You must enter your root //
// dirctory. //
// //
//******************************************************//

// --- add promter and recursive call
echo "<form action=\"finder.php\">";
echo "File: ";
echo "<input type=\"text\" size=30 name=\"parm\"> ";
echo "<input value=\" Submit \" type=submit>";
echo "<hr><br><pre>";

// MODIFY THE FOLLOWING LINE TO YOUR HOME DIRECTORY
passthru("find /home/yourdirectory -name '$parm' ");
echo "</pre>";
?>
<hr><br></font>
<font face=arial size=2>
[<u><a href=usage.php>Usage</a></u>]
[<u><a href=directory.php>Dir</a></u>]
</font>

</body>
</html>



Disk Usage, uses UNIX du command.
Categories : Complete Programs, PHP, Filesystem
Handle multiple file upload
Categories : Complete Programs, Filesystem, PHP, HTML and PHP
Directory viewer, customize how you display the file structure, easy to understand. Found out about PHP 3 days ago, and this is my first prog.
Categories : HTML and PHP, Complete Programs, Directories, Filesystem, PHP
This is a simple photo gallery that reads the image files from multiple directories, and generates a web page styled with CSS1. It opens single auto window to view and print a given image.
Categories : Graphics, Filesystem, PHP, Complete Programs
QTO File Manager
Categories : Filesystem, filePro, Complete Programs, PHP, Content Management
File Explorer, browse, upload, download and edit your web site files with only a browser and a HTTP connection.
Categories : Complete Programs, Content Management, Filesystem, PHP
Complete NotePad application for Websites (Like Yahoo Notepad)
Categories : PHP, Web Applications, Filesystem, Java Script, Complete Programs
GuestBook Light - a plug and play application for any website.
Categories : PHP, Complete Programs, Filesystem, Sessions
Contents Page - a script to build contents pages.
Categories : Complete Programs, PHP, Utilities, Filesystem
Variable serialization and unserialization. Loading and saving variable structures to and from file.
Categories : Arrays, Filesystem, Variables, Strings, PHP
An efficient iterative and buffered text file reader
Categories : PHP, Classes and Objects, Filesystem, PHP Classes, Log Files
Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs.
Categories : Databases, PHP, MySQL, Complete Programs
Create and restore backup of MySQL databases
Categories : MySQL, Databases, PHP, PHP Classes, Complete Programs
PHP-MySQL shopping cart
Categories : PHP, Ecommerce, Complete Programs
filesystem Show Files Script
Categories : PHP, Filesystem, Java Script
 Marcus Xenakis wrote :3
An updated version of this script can be found at http://www.xenakis.net/downloads