Article Collection of three PHP counter code, all of them three have a common point is all without a database, but the use of text files to instance the page view count Oh.
The article collects three PHP tutorial counter code, they all three have a
PHP File Upload Code This is a very example of PHP file upload code program, take it can be used.
PHP Tutorial File Upload code
if ($uploadedfile <> "None") {
if (!copy ($uploadedfile, "$uploadedfile _name")) {
PHP Recursive Delete directory (folder) under the two instances, one is to delete the separate empty directory code, one is the bulk delete directory folder code.
PHP Tutorial Recursive Delete directory (folder) under two instances, one is to delete
Generated bar chart for PHP
As overwhelmning for Guangdong's demand-related example, this most important is to generate a bar graph from an array to
Please. Of course, these can be easily from any number of sources, as well as input into an array
To remove a repeating word from a string, generate an index string
//--------------------------------------------------
function Getindextext ($okstr, $ilen =-1)
{
if ($okstr = = "") return "";
$ws = Explode ("", $okstr);
$okstr = "";
$wks =
Class Show_page {
/*** Page Output results** @var String*/var $output;
/*** Use this class of files, default to Php_self** @var String*/var $file;
/*** Page pass variable, default to ' P '** @var String*/var $pvar = "P";
/*** Page Size** @var
Add all *.hlp files from the current folder to the compressed file Help.rar
WinRAR a Help *.hlp
To add comments from a file, you can use the
-z switch.
WinRAR C-zinfo.txt Dummy
In this way, we can call cmd through the PHP tutorial, run
Realization of the article
In general, use the PHP tutorial to implement the upload progress bar in the following two ways:
1.APC Extension (author is the founder of PHP tutorial, after 5.2 PHP has joined APC extension)
2.PECL Expansion Module
Here we provide you with a simple PHP shopping cart code Oh, from the increase of shopping products and the occurrence of the purchase, in the mall development, this function is indispensable, we do not need a database, using a txt text file to
Let's take a look at one of the Code conversion program codes written in PHP Oh, turn the gbk,utf-8 between each other.
function Phpunescape_no ($source) {$DECODEDSTR = "";$pos = 0;$len = strlen ($source);while ($pos $charAt = substr ($source, $pos,
The article provides a PHP detection file type (according to the file header information) Oh, he can according to the user post file header information to the exact file type.
This article provides a PHP tutorial to detect the file type (based on
PHP implementation of file data cache implementation code caching technology is every time you visit the page, will first detect the corresponding cache is present, if not, connect the database, get the data, complete the template variable
PHP stores the images in the MySQL database and displays them on the Web page.
PHP tutorial put pictures into MySQL Tutorial database tutorial and display on Web page
Save picture to Database
If ($Picture! = "None") {
$PSize = FileSize
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service