Copy Code code as follows:
Class Code
{
var $width = 160; The width of the picture
var $hight = 40; The height of the picture
var $image;
var $red = 223; RGB color of a picture
var $green = 225; Red
var $blue = 227;//Green
var $pix = 227
These days very boring, nothing to do, happened to a friend of a new website, let me go to see, by the way test the security of the site.
First look at the structure and layout of the site, feel the overall use of the whole station program, careful
Web content compression (to make your customers more "cool")
Through the above two methods, I believe that your PHP application performance has been greatly improved, now the other aspect to consider: download speed. If your application is running
I read the article "How to invoke Asscess database and COM program in PHP through ADO", immediately after the test, the result failed. Sad isn't it.
What to do? I had to go to the official PHP website for help, emperor not negative, finally I found
echo preg_replace ("/]*) (?=\>)/I", "#", " Hello, click here to see Hello, click here to see ');
?>
Regular:/(? ]*) (?=\>)/
(? (? =exp) match the position of the exp front
This matches all characters that are not ">" before ">" After
Usage
Disk_free_space ($path);
Note: This function does not work on remote files, and the files that are checked must be accessed through the server's file system.
function of this function
This function returns the number of bytes available
PHP script blocks start with . You can place PHP script blocks anywhere in the document.
Of course, on a server that supports shorthand, you can use the. and?> to start and end script blocks.
However, in order to achieve the best compatibility, we
Array_map the callback function to the cell of the given array.
Description
Array Array_map (callable $callback, array $arr 1 [, Array $ ...])
The Array_map () function takes a user-defined function to each value in the array and returns an array
The following is the first to introduce the concept of cookies and working principle.
What is a Cookie?
A Cookie is a small piece of textual information that accompanies the user request and the page is passed between the WEB server and the
PHP prevents forms from being submitted repeatedly
Due to the network reason, often came out to point the Submit button, the Web page did not respond, and then click again. This will result in the background received two submissions, so that two
Problem
I am debugging PHP line by row output time, found ob_flush and flush two are invalid, through Phpinfo Basic can judge the setting of PHP.ini is normal.
Solving method
Then to see Nginx, found in the Nginx, like the following settings:
The content of this article I will show you how to apply PHP to read the server's files out on the Web page.
Existing file orders.txt stored on the server, which reads:
Now create Vieworder. PHP file, read it out and display it;
Reading large files has always been a headache for the problem, we like using PHP to read small files can be used directly to implement a variety of functions, but one to large articles will find that the common method is not normal or too long too
Kohana is a pure PHP5 framework, developed based on the MVC pattern, characterized by high security, lightweight code, easy to use, and the latest KOHANA3 support HMVC mode. The following is a reference example of Kohana pseudo static configuration
Use the PHP language implementation, if you do not understand, please leave a message .... I believe the principle is similar.
Why do I use PHP as an example language?
No more than two factors: 1. PHP syntax is easy to understand, a bit of the basis
Auto Load Class
Many developers write object-oriented applications, creating a PHP source file for each class definition. A very large
The trouble is having to write a long list of included files at the beginning of each script (one file per class).
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