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
Error_log: Send out an error message.
Error_reporting: Configure the level of return for error messages.
GETENV: Obtaining the environment variables of the system
Get_cfg_var: Gets the configuration option value for PHP.
Get_current_user: Gets the
Php uses Cookie implementation and user session method, and phpcookie implements session. Php uses cookies and user sessions. phpcookie implements session. This article describes how php uses cookies and user sessions. Share it with you for your
String
Gets the length of the string: strlen () functionGet Chinese text long echo mb_strlen ($str, "UTF8");
English string interception$str='i love you';Capture the letters of loveEcho substr ($str, 2, 4);//Why the starting position is 2,
Gets the current UNIX timestamp
From 1970.1.1 (00:00:00)-Number of seconds in the current time and
Get the current date
Date ();
Date (timestamp format, specified timestamp "default is the current date and time, optional")
PHP provides a large number of built-in functions, allowing developers to easily process time, greatly improving work efficiency. Today, we will introduce some common PHP date and time functions as well as date and time processing. 9.1 Common date
Why does date get time different from machine time?
I want to use date () to get the current time compared to the value of a datetime type in the database. I used the echo date (' y-m-d h:m:s ') to get it was 2012-04-04 07:04:20
But now my machine
First, the module:module, which implements a set of code for a function with a mound code.Like functional programming and process-oriented programming, functional programming accomplishes a function, and other code is used to invoke it, providing
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
Created: 2012-10-12 a updated:2012-11-17 6 Author: Chen Bin
Gnus is a fine email client. but its learning curve is a little steep even for some geeks. I am a geek and I 've read all the gnus tutorials I cocould get from the Internet. for a very long
I have checked a lot of information on the Internet. I want to know how to integrate Apache and tomcat so that httpd of Apache is responsible for static content and Tomcat is responsible for dynamic
API reference:
Http://open.taobao.com/api_tool/api_test.html
User authorization code:
Http://open.taobao.com/isv/authorize.php? Appkey = {util. app_key}
Public test account:
Http://open.taobao.com/api_tool/taobaoPubAccount.html
Password: taobao1234
UNIX time can be roughly divided into real-time and time in the struct.
1 \ calculate the number of seconds from 1900 to 1970 rfc1305-Network Time Protocol. In the network protocol, the timestamp format is a four-eight-bit group. The value is the
The access log formatting variables follow the Apache variables:
% B
Result Content Length
% D
Time taken to complete the request in microseconds (since 3.0.16)
% H
Remote IP ADDR
% {XXX}
When the program runs the query statement in Oracle9i, the access violation at address 610a3285 in module 'oracore9. dll '. Write of address 00000000 is abnormal. However, in the development environment of Oracle10g, everything works normally and it
Original article link
Tcpdump is a tool used to intercept network groups and output group content. It is simply a packet capture tool. Tcpdump is the preferred tool for Network Analysis and troubleshooting in Linux based on its powerful functions
Some time ago, the project involved the conversion between MySQL and MSSQL data types. Recently, I was studying Sina Weibo's API, which involved the conversion of GMT time types with time zones, this is a special record for future query.
I.
The date is smalldatetime in SQL Server 2000. Now we need to pour the data into MYSQL: Timestamp. The tool functions used are as follows:
Function formatstringdate ($ strdate) {$ conver = explode ("", $ strdate); $ currtime = (strlen ($ conver [3])
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.