Php file annotation mark and standard summary. php developers can add them to their favorites for future use, making our code more professional.
PHP annotation mark
@ Access
Usage scope: class, function, var, define, module
Indicates the access
Currently, for win2003 servers, most mainstream space vendors install IIS6.0 web servers. generally, many junior users will think that Windows hosts support php pseudo-static servers, but they are not, many people do not understand how to set up
The PHP anti-leeching code modified by a friend can be shared here to make it easier for a friend who needs it
The code is as follows:
/**
* @ Author seraphim
* @ Copyright 2012
*/
$ ADMIN = array (
'Defaulturl '=> 'http: //
When reading the PW source code, I found that the setHeader () function uses the static keyword. it is strange that it has never been used before. Static is used in the function. after a variable is declared, if this function is called again, it
Php voting system design and implementation. if you need a friend, you can refer to the code and database results Design. Finally, the network manager provides a source code download system that is not large. I have completed this system in three
The php program file generates content to the Word document and provides the download function implementation code. For more information, see
This article mainly solves two problems:
1: how to generate html content into Word documents in php
2:
Php sorting algorithm code, including bubble sorting and quick sorting. For more information about how to implement bubble sorting, see Bubble sorting.
① Put all the numbers to be sorted into the work list.② From the first number in the list to the
Adapter (alias Wrapper) mode: converts an interface of a class to an interface of another class that the customer expects. The adapter allows classes that are incompatible with the original interface to work together. key points:
1. the Adapter
This article introduces how to use PHP to sort inserts, if you have a need, you can refer to the basic operation of inserting sorting data into ordered data that has already been sorted to get a new ordered data with a plus of numbers.
Algorithm
In the unix world, the newline is replaced by n, but in windows, rn is used to reflect its differences, and r is more interesting in mac. Therefore, the unix series use n, the windows series use rn, and the mac uses r, so that the program you write
You may have heard about the DOMElement xml operation. next we will introduce it to you as an example. if you are interested, refer to the following,
The code is as follows:
// Store your html into $ html variable.
$ Html ="
Rakesh Verma
Recently, I was browsing a beauty website, but considering the speed problem, this kind of website is slow to open and has a lot of advertisements. I randomly wanted to use php to collect these beautiful pictures.
Design ConceptConsidering that it
This article describes how to use PHP to calculate today's instances in the previous month. if you need a friend, refer to the next day and ask for a question. At the beginning, we used the strtotime ("-1 month") function to evaluate the value. we
This article analyzes the implementation of the DOMElement operation xml document in php. For more information, see
The code is as follows:
/*
-->
] /> -->
Sun Wukong
Sun Walker
123
This article provides a detailed analysis of the code that uses cookies to calculate the number of visitor logins. For more information, see
The code is as follows:
$ _ COOKIE ["counter"]? ($ C = $ _ COOKIE ["counter"] + 1) :( $ c = 1 );
SetCookie
This article provides a detailed analysis of how to create a basic authentication site for php. if you need a friend's reference, by default, most web servers are configured for anonymous access, that is, when you access the information on the
Ajax cancels the processing of pending requests. For more information, see Ajax.
When we switch the tab, if ajax technology is used, we will encounter the following situation: click the tab1 option, the server sends an Ajax request to obtain the
The PHP character filter function removes the last comma of the string. it is easier to use the built-in functions of php to solve the problem,
Trim filters both ends of a string,Rtrim filters the tail of the string, = chop ()Ltrim filters the
This article provides a detailed analysis of the import file labels in thinkphp. For more information, see ThinkPHP.
The first is the import tag. the import method adopts the namespace method similar to the import function of ThinkPHP, for example:
This article provides a detailed analysis of the three methods for PHP to output XML to the page. For more information, see
Method 1:
The code is as follows:
Header ("Content-type: text/xml ");
Echo"
";
Echo"
";
Echo"
";
Echo"
";
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