>create Table Stream (
IP text,
stime int,
visits int,
info text);
if ($day $mlink =mysql_connect (' localhost ', ' Ajax ', ' xxxxxxx ');
Statistics so far the total number of pages viewed
$query = "Select SUM (visits) as tvisits from
PHP Get time today tomorrow time stamp yesterday
PHP Get time today tomorrow time stamp yesterday
2011-06-30 9:46
echo "Today:". Date ("y-m-d"). "";?????echo "Yesterday:". Date ("Y-m-d", Strtotime ("-1 Day")), "";?????echo "Tomorrow:". Date
1. Oracle startup and Shutdown1. In a single-host environmentTo start or shut down the Oracle system, you must first switch to the Oracle user, as shown below:Su-OracleA. Start the Oracle SystemOracle> svrmgrlSvrmgr> connect internalSvrmgr>
Print $ week_start & nbsp; = & nbsp; date ("U", mktime (, 0, date ("m"), date ("d ") -7, date ("Y"); $ week_end & nbsp; = & nbsp; date ("U", mktime (, 59, dat print each day of the previous week
$week_start = date("U",mktime(0,0,0,date("m"),date("d"
PHP date format a local time date(PHP 4, PHP 5)date- Formatting a local time/dateDescriptionstring date ( string $format [, int $timestamp ]) Returns a string that is the result of the timestamp of an integer in a given format string. If no
$selectedDay = Date (' d ');
$selectedMonth = Date (' m ');
$selectedYear = Date (' Y ');
Gets the first day of the month is the numeric type of the week
$firstday = Date (' W ', Mktime (0,0,0, $selectedMonth, 1, $selectedYear));
Find out the last
Date--Format a local time/dateDescriptionStringDate(String format [, int timestamp])Returns the integerTimestampString generated based on the given format string. If no timestamp is provided, the current local time is used. In other
1. Oracle startup and Shutdown
1. In a single-host environment
To start or shut down the Oracle system, you must first switch to the Oracle user, as shown below:
Su-oraclea: Start the Oracle System
Oracle> svrmgrl
Svrmgr> connect internal
Svrmgr>
Nginx, as an HTTP server, performs extremely well in terms of function implementation and performance. It is comparable to Apache and can implement almost all Apache functions, the following describes some common nginx configuration instances,
Use php to obtain the timestamp of today, tomorrow, and yesterday
Echo "Today:". date ("Y-m-d"). " ";
Echo "yesterday:". date ("Y-m-d", strtotime ("-1 day"), " ";
Echo "Tomorrow:". date ("Y-m-d", strtotime ("+ 1 day"). " ";
Echo "one week later:".
PHP date formatting and date calculation as well as getting the current week, month and tail date
PHP date formatting and date calculation as well as when getting previous week, month tail date
PHP date formatting Sample code:
/** * Format time
PHP date and time, PHP date and time. PHP date and time, PHP date and time 1, datestringdate (string $ format [, int $ timestamp]) echodate (Y ). br; 2016 echodate (y ). br; 16echo ------ br; echo PHP date and time, PHP date and time
1. date
string
Core code
You can try these small functions when you encounter a system with a date command that does not give you power.
#日期转天数 function Date2days {echo "$*" | awk ' {z=int (14-$2)/12); y=$1+4800-z;
J=int ((153*m+2)/5) +$3+y*365+int (
Date and time function library {often forget}Checkdate: Verify the correctness of the date.Date: Formats the time of the server.Strftime: Formats the server's time locally.GETDATE: Get time and date information.Gettimeofday: Get the current
The Oracle tutorial being looked at is the sh file of the Oracle database logical backup.
SH file for full backup: exp_comp.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
SH
The filters currently supported include
Date format replace Number_format Url_encode Json_encode convert_encoding title capitalize nl2br Upper Lower striptags Joi n Reverse length Sort default keys escape raw MergeThe date Filter version 1.1 adds
SH file for full backup: exp_comp.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
SH file for cumulative backup: exp_cumu.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp
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.