WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
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 Resources
Web Development Content
Internet Security Software
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
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

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 : A simple PHP script to list all counters maintained in a text file on your site. For UNIX servers only, uses the find command.
Categories : PHP, Complete Programs Click here to Update Your Picture
Marcus Xenakis
Date : May 12th 1999
Grade : 3 of 5 (graded 2 times)
Viewed : 10649
File : count.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  Submit your own code examples 
 

#! /usr/bin/php
<HTML>
<HEAD>
<TITLECounters</TITLE>
</HEAD>

<BODY>

<b><font face=arial size=+3>Counters</font></b>

<!--- start PHP code ---->
<?php
// *****************************************************//
// //
// Author - Marcus S. Xenakis 5/11/99 //
// marcus@xenakis.net //
// //
// This simple PHP script only runs on a UNIX server. //
// It is based on the "find" command. //
// //
// This program finds files with the extention "count". //
// It the opens the file and displays the first record. //
// For a PHP script to maintain the counter files see //
// http://www.xenakis.net/downloads. //
// //
// There is one modifications required in order //
// to run this script. You must set your root dir. //
// //
// *****************************************************//

// -- Set your home directory here
$home = "/home/yourdir";
echo "<font face=arial><br>";
print(date("m/d/y h:i"));
echo "<br></font>";

// --- read dir and identify counters
exec("find $home -name '*.count' ",$lines,$rc);
$count = count($lines) - 1;

// --- list counters
echo "<hr><br>";
for ($i = 0; $i <= $count; $i++) {
$fp = fopen($lines[$i],r);
$num = fgets($fp,5);
echo "$lines[$i] - $num Visitors<br>";

}

?>
<hr><br>

</body>
</html>



PHP-MySQL shopping cart
Categories : PHP, Ecommerce, Complete Programs
databases administration remote Web
Categories : mSQL, PHP, Complete Programs, Databases
This is a very simple BBS that uses MySQL
Categories : MySQL, Databases, Complete Programs, PHP
DBE - Database Expander: Edit PostgreSQL individual database tables online via your Web browser!
Categories : PostgreSQL, Complete Programs, Databases, PHP Classes, PHP
GroupIT Content Management and Community Engine
Categories : PHP, Complete Programs, Content Management
Expose - PHP template engine, supports server and client-sided caching,a plugin system, multiple languages, template script language is based on PHP itself.
Categories : PHP, PHP Classes, Templates, Complete Programs
Finds files on your site, uses UNIX find command.
Categories : Complete Programs, Filesystem, PHP
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
phpAds, a complete banner and ad management system with detailled tracking and stats.
Categories : MySQL, Complete Programs, Ecommerce, PHP, Databases
Point and Click Interface ala MS Access for creating SQL statements.
Categories : MySQL, Complete Programs, General SQL, PHP, Databases
Rich Editor (RE) is a cross-browser WYSIWYG html editor
Categories : Content Management, Editors and IDEs, PHP, Complete Programs
Example voting script. Lets people enter suggestions and vote for existing ones.
Categories : MySQL, PHP, Cookies, Complete Programs, Databases
ClassFuncDoc - This script is a classes and functions documentation tool.
Categories : PHP, Classes and Objects, Documentation, PHP Classes, Complete Programs
Free For All Links Page using PHP3 and Mysql
Categories : PHP, MySQL, Complete Programs
 Marcus Xenakis wrote :5
Please ignore the coments in the code that says the program 
calls two other programs. It was left over from the porgram I 
copied it from.