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 : phpflashcounter a php counter with flash as output
Categories : PHP, Flash Update Picture
idban secandri
Date : Aug 25th 2000
Grade : 2 of 5 (graded 4 times)
Viewed : 6456
File : No file for this code example.
Images : No Images for this code example.
Search : More code by idban secandri
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

how it work?
first the counter run us usual, using a php script, i use my old simple text counter with litle
modification.

We got two php script to make this possible, one counting other showing, you can put it on
one file even on spreaded files.

Below this is the script that have function to add out counter;
<?
if (!$phpcounter) {
//set cookies, so our counter isnt growing, at last 1 hour
setcookie("phpcounter",lock,time()+3600);

//open out flat data counter
$file = fopen("/location/of/our/flat/data/count.txt","r+");

//read it
$count = fread($file, filesize("/location/of/our/flat/data/count.txt"));

//close the file
fclose($file);

//set variable to add 1
$count +=1;

//open again to add 1
$file = fopen("/location/of/our/flat/data/count.txt","w+");
fputs($file, $count);
fclose($file); }
?>

now we going to script that have function to show our counter let name it flacounter.php3
<?
$filename = "/home/idban/count.txt";

//open out flat data counter
$fd = fopen ($filename, "r");

//read it
$counter = fread ($fd, filesize ($filename));

//close the file
fclose ($fd);

//set variable to flacounter
$flacounter = "counter=";

//set variable flacounter as rawdata
$flacounter .= rawurlencode($counter);

//print it, you will got counter=number..
echo "$flacounter";
?>

After making that scripts, now stating to make the fla file
A. select your text, then...right klik
B. select properties


then make sure you name your text property same as variable that you had chosse on your script, we
use counter= ; so .. we name it counter


now go to action/frame, pointing to your text ( counter ) layer, as you know out layer named
guestnum, so we pick the guestnum, next step, just right klik on it
and select properties

A. select action,
B. push + simbol, ( C ) select Load Variable, fill with location of your script that showing the
counter, mine is http://php.klik.or.id/fla/flaconter.php3 so, put it on the URL ( E )
D. push + simbol, once again and add play
F. change variable to GET

Credits:
- Rasmus, Julie, Desy fatmawati,


Jakarta, 21 Agustus 2000, copyleft by idban secandri <idban@nospam.satunet.com>
sample and complete documentation available on http://php.klik.or.id/fla




Classic guest book made with PHP and Flash
Categories : PHP, Flash, Java Script
Database Independent User Maintenance
Categories : PHP, Flash
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
This is a database wrapper for PostgreSQL, but can be simply modified for any other database type.
Categories : Databases, PostgreSQL, PHP
How to thread a list of messages in database and show it in a treelike structure
Categories : PHP, MySQL, Databases
Scripts to build APACHE - PHP and SQL 7.0
Categories : PHP, Databases, MS SQL Server
Remote Archive (Zip, Tar, Gzip) downloader with FTP and local extration support
Categories : PHP, FTP, Filesystem, PHP Classes, Compression
Upload any fixed type of files, control file type through javascript and encrypt filename using php so file not get overwrite
Categories : PHP, Java Script, Functions, PHP References, Form Processing
Filling an array with files from any given directory. This example is for the current PHP script's directory.
Categories : PHP, Arrays, Filesystem
RSS parser using PHP5 and simpleXML
Categories : Rich Site Summary (RSS), PHP, XML
Creates three SELECT form fields: Month, Day, and Year. You give it a string which will be used to make the name for the three fields, and a number of seconds to use as the default date. If you give it blank for this value, the current date is used.
Categories : HTML and PHP, PHP, Date Time
PHP Nested Menu Example - Shows how to make a single level nested menu
Categories : PHP, Navigation
Authorize.net AIM Interface Class v1.0.0
Categories : PHP, PHP Classes, Ecommerce, Payment Gateways
Browser Detecor Class
Categories : PHP Classes, PHP, HTML
PDF_add_annotation -- Deprecitad: Adds annotation
Categories : PHP, PHP Functions, PDF
 idban secandri wrote :450
http://php.klik.or.id cant resolve
u can use
http://klik.php.or.id/
http://phpklik.org/
http://php.linux.web.id/