Lotusphp's Cookie component is also very easy to use.
First of all, to create a new configuration file, the file name is cookie.conf.php, as to where to wait until the Config component, there will be a description, today first how to use, what
One day, encounter a problem, ask for one months of today. At first we used the Strtotime ("-1 month") function to evaluate the problem, and the month with different months was wrong. For example: 2011-03-31, the result is 2011-03-03. Let's look at
PHP provides functions that can easily convert various forms of a date to a timestamp, which is mainly:
Strtotime (): Resolves the datetime description of any English text to a timestamp.
Mktime (): Gets the timestamp from the date.
Let's take a look at what's saved in the browser. If you use IE5, there is a directory of cookies in the Windows directory, there are many text files, the filenames are similar to Wudong@15seconds[1].txt, this is the browser to save the value of the
Use cookies to track and identify users
Let's take a look at what's saved in the browser. If you use IE5, there is a directory of cookies in the Windows directory, there are many text files, the filenames are similar to Wudong@15seconds[1].txt,
PHP4 Cookies Support detailed establishment of commercial sites or more sophisticated personal sites, often need to record visitors ' information, in PHP provides two convenient means: Session and Cookie function. In order to permanently maintain
In Apache. the htaccess file (also known as the "distributed configuration file") provides a method for changing the configuration of directories, that is, to place a file containing commands in a specific document directory, to act on this
I. Basic functions of. htaccessTo enable. htaccess, you must modify httpd. conf, enable AllowOverride, and use AllowOverride to restrict the use of specific commands.If you want to use a file name other than. htaccess, you can use the AccessFileName
The question we present to you today is about
? PHP
Setcookie ("Cookieid", $USERID);
?>
HTML>
BODY>
/body >
/html >
PHP reads the Setcookie function of the cookie in a total of six parameters,
first, set a cookie
Cookies must be set before using cookies.
function prototypes: int Setcookie (string name,string value,int expire,string path,string domain,int Secure)
All parameters, except name, are optional and can be represented by an empty
PHP Time and date
PHP provides a large number of built-in functions that enable developers to work on time, greatly improving productivity. Describes some common PHP date and time functions and the processing of dates and times.
Common date and
How to calculate the date between the start date and the result date??
Like what:
Start Date: 2013-10-28
End Date: 2013-11-02
The dates included are: 2013-10-28,2013-10-29,2013-10-30,2013-10-31,2013-11-01,2013-11-02
Start Date: 2013-12-29
End Date:
In PHP, mktime is converted to milliseconds. In php, there are many ways to convert a time date into a timestamp (converted to milliseconds). The simplest way is to use time () we can directly obtain millisecond. if it is like, there are many ways
Cookies of PHP4 support the establishment of commercial sites or well-functional personal sites. visitors often need to be recorded. in PHP, two convenient methods are provided: session and COOKIE functions. cookie is the most convenient method to
Php Tutorial date () convert mktime () to readable dateThe date/time function allows you to extract and format the date and time on the server.The mktime () function returns the unix timestamp of a date.The parameter always represents the gmt date,
Connect to the database:
Format: mysql-H host address-u user name-P User Password
Database prompt: mysql>
Exit database:
Exit (Press ENTER)
Knowledge Point accumulation:
1. date_default_timezone_set-sets the default time zone used for all
Use cookies to track and identify users
Let's take a look at the content saved in the browser. If you are using ie5, there is a cookie directory under the Windows directory, which contains many text files. The file names are similar to
The question we are going to discuss today is
? Php
Setcookie ("CookieID", $ USERID );
?>
HTML>
BODY>
/BODY>
/HTML>
The setcookie function for PHP to read Cookies has six parameters separated by commas:
Cookie name, which is a
One day, I encountered a problem. Please wait for the day of the previous month. At the beginning, we used the strtotime ("-1 month") function to evaluate the value. We found that there was a problem where the calculation results of months with
COOKIE and SESSION comparison
1. the HTTP protocol itself is stateless.
We need to transmit information over HTTP to access the Internet. For example, if you type "www.sanyalanhua.com" in your browser and press enter, you will find that the
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.