This is a function that calculates the number of days from January 01, 2000 to a specified day
(end of calculation) date format: YYYY-MM-DD
Calculate the number of days from January 01, 2000 to a day
function Cal_start2end ($end _day, $start _
This article describes the PHP shopping cart class Cart.class.php definition and usage. Share to everyone for your reference, as follows:
Before the developers used JS Technology developed a set of front-end shopping cart (delete add what all use
/**
Desc:header functions to set various HTTP headers
link:bbs.it-home.org
Date:2013/2/24
*/
Defining the Encoding
Header (' Content-type:text/html;charset=utf-8 ');
Atom
Header ('
nonsense don't say, on resources: New Linux video tutorial: Http://pan.baidu.com/s/1c01r15Y HTML5 video tutorial: Http://yun.baidu.com/s/1jGIJLum Java, Android Video tutorial: http://yun.baidu.com/s/1dDvOH37 Cocos2d-x Video tutorial:
Date-time functions are a core part of PHP. These functions can be used without installation. The specific use of the date function is described in detail below:
PHP Date () functionThe PHP date () function formats the timestamp as a date and time
PHP-made port sniffer--you can specify the website and port
and return the sniff results.
function Http_request ($server, $port) {
$data = "";
$query = "head/http/1.0";
$fp = Fsockopen ($server, $port);
if ($fp) {
Fputs ($FP, $query. " Rnn ");
while
COM functions in PHP4 (Windows version) these days have been writing Excel into MySQL, found an article, search the PHPX forum, without this post, put it reprint as follows:
COM functions in the PHP4 (Windows version)
Introduced
COM functions
Author: Armel Fauveau
Original address: Http://www.phpbuilder.net/columns/armel20010427.php3
PHP can open remote or local server sockets! Here is a simple example of using a socket: Connect to Usenet news server, communicate with the server, and
First clean up the idea first, ~ ~
First: You need to upload the file to the server.
Then: Read the Excel data column display
Then: Let the user select the corresponding relationship of the field
Then: Submit the data, read the correspondence of the
Copy CodeThe code is as follows:
/**
* A function of converting a digital amount into a Chinese capital amount
*string Int $num lowercase number or lowercase string to convert
*return Capital Letters
* Decimal place is two digits
**/
function
In PHP 4.2, they canceled that old practice! As I will explain in this article, the purpose of making such a change is for security reasons. We'll look at the new approach to PHP when it comes to processing form submissions and other data, and
Objective:Fckeidtor is a foreign multi-language editor, you can make simple changes to its configuration file to support the current common web development language applications, the following I would like to talk about the latest version of
Copy CodeThe code is as follows:
Mobile phone number Verification
function Checkmobilevalidity ($mobilephone) {
$exp = "/^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|18[012356789]{1}[0-9]{8}$|14[57]{1}[0-9]$/";
if (Preg_match ($exp, $mobilephone))
Curl Installation:
installation under Windows: Modify the settings of the php.ini file to find the Php_curl.dll
Cancel the comment under the Extension=php_curl.dll
install under Linux:
Copy CodeThe code is as follows:
# wget
In the Internet to find a lot of ways, and eventually solved the
In fact, the simplest way is to add
Label
You can also use program control
Copy CodeThe code is as follows:
Header
First, the extraction class (abstract)In our actual development process, some classes do not need to be instantiated, such as some of the previous learning of the parent class, mainly for the subclass to inherit, so as to improve code
Define section:Macros can be used instead of constant values, and can be used instead of expressions, even code snippets. (Macros are powerful, but error-prone, so their pros and cons are quite controversial.) )
The syntax for a macro is:Macro
MAX_CHILDREN=40, each children an average of 20m-30m memory, the more children, you can accept the more concurrent quantity, the general children value is the maximum number of Web site concurrency + floating value, this value and x memory
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.