Recently has been using Php+dbfile development blog, the development process to learn a lot of things, so I tried to write a small message book.
This message used Php+dbfile, do not need to use the database, you can put in the blog, such as
PHP (hypertext Preprocessor) is an HTML-embedded language (similar to an ASP on IIS). PHP's unique syntax blends the new syntax of C, Java, Perl, and PHP. It can execute dynamic Web pages faster than CGI or Perl. In addition, the Web backend CGI
The example in this article describes how the PHP implementation saves the Base64 format picture in the specified directory. Share to everyone for your reference, specific as follows:
PS: Here again for you to recommend several
This article illustrates the PHP code encryption and decryption class based on PHP implementation. Share to everyone for your reference, specific as follows:
PHP code encryption class, you can change according to their needs, the original class
Instance 11: Date Stamp, date display
Copy Code code as follows:
echo time ();//Returns a string of timestamp in seconds
echo "";
echo Date ("Y-m-d h:i:s", Time () +8*3600),//formatting times, +8*3600 changed to China time zone
There are many PHP functions that need to be queried by the API.
Copy Code code as follows:
/*
#数组 No Limit size: $arr [0]=1; $arr [1]=2; $arr =array ("0", "1"); $list ($num 1, $num 2) = $arr;
Array range (int low,int high[,int Step])
Today, someone asked me again Phpchina how to do PHP XML? , and the corresponding solution has been given. By the way, talk about the input and output stream of PHP.
Today summer vacation in the company, just colleagues use flash to create
1, year-month-day
echo Date (' y-m-j ');
2007-02-6
echo Date (' y-n-j ');
07-2-6
Capital Y represents a four-digit year, while lowercase y represents a two-digit number for the year;
Lowercase m represents the number of months (with leading),
The syntax for a function is:
Function Definition Method
Copy Code code as follows:
Function "Function_name" (Arg1, arg2 ...)
{
[Code to execute]
return [Final_result];
}
where [Final_result] usually returns the value
Recognize and use PHP Super global variables
Super global variables, also known as predefined variables, are the PHP system's own variables, which makes your program more convenient and quick to design. Its types include:
$GLOBALS
Contains a
We created two files on Linux with Touch php_get.html php_get.php.
The code for the php_get.html file is as follows:
Super global variable $_get to receive the submitted data and then return the information
Submit data using Get
This article mainly introduces PHP to the XML content to modify and delete the method, the following words do not say, we look at the example
The schematic diagram is as follows
Sample code
Example.xml
title1
title2
HTML entity symbols are used to implement reserved characters (reserved characters) or to express some characters that the keyboard cannot enter. In most browsers, the default character set is Iso-8859-1. HTML entity symbols that we often use in web
In fact, the image recognition technology and we usually do the password verification and so no difference, are in advance to check the data into the warehouse, and then use the input (identification) data and the data in the library, but the image
In PHP, the array_merge_recursive function is used to combine cells of one or more arrays, and the values in an array are appended to the previous array, returning as an array of results. This article will detail the use of array_merge_recursive
The examples in this article describe the techniques associated with PHP array manipulation. Share to everyone for your reference, specific as follows:
This is a simple PHP array entry question
$STR =
At the outset, I think a Web site registration and login to these two functions is very magical, and then their own research to find the truth is very simple, then see how to achieve it ....
I've built a couple of files on my computer:
login.html (
This article illustrates the principle and usage of PHP object-oriented automatic loading mechanism. Share to everyone for your reference, specific as follows:
In learning PHP object-oriented, you will know a lot of "grammatical sugar", that is,
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