The time in PHP has two formatting functions: Date () and gmdate (), which are described in the official document as follows:
Date-format a local time/date
Gmdate-format a gmt/UTC date/time and return the Greenwich Mean Time (GMT ).
For example, if
Windows
Install Apache + MySQL + PHP
1. install Apache
A) double-click the file Apach_2.2.8_win32-x86-no_ssl.msi to bring up the welcome interface. Click the next button to go to the license agreement interface.
B) The user must agree to the terms
Ubuntu server apt-Get install apache2 & PhP5 & mysql5
Place mysql5 + apache2 + PhP5 + phpMyAdmin in apt-Get mode:
Master please take a look at the Ubuntu wiki, (http://wiki.ubuntu.org) above is very specific. However, I did not enjoy it for the
1. Install libevent
Because the libevent class library is required for installing memcached, install libevent first.
1. Download
# Wget
Http://www.monkey.org /~ Provos/libevent-2.0.12-stable.tar.gz
2. Extract
# Tar xzfv
I. Web Server Security
PHP is actually a module function of the Web server. Therefore, you must first ensure the security of the Web server. Of course, to ensure the security of Web servers, you must first ensure the system security. This is a long
Simply put
Memcache is the name of the total cache system project, which is easy to be confused with memcache in the php tutorial.
We often mention that memcache is actually a memcache in php, that is, php's memcached extension support.
We often
Php Runtime Environment (Apache configuration, Mysql) in a non-integrated environment to build and install a graphic tutorial,
This article shares with you the php runtime environment installation text tutorial for your reference. The details are as
In a Windows system, use PHP to generate WORD Documents,
Preparations
First, make sure that a typical WAMP environment has been installed and configured in your Windows system. Since Interop is purely a Windows feature, we will build Apache and PHP
Getenv of PHP information functions
□Applicable versions: PHP3 and PHP4□Function: Obtain the environmental variable value.□Function Syntax: string getenv (string varname)□Function Description: This function can return the environmental variable
There are two sets of regular expression function libraries in PHP. The two functions are similar, but the execution efficiency is slightly different:
One set is provided by the PCRE (Perl Compatible Regular Expression) Library. Functions with the
The Shaun Clowes Article Exploiting Common Vulnerabilities in PHP Applications is indeed well written,I have considered many aspects. This article only adds some other questions that have not been mentioned. This article focuses on solving the
Display_errorsError ECHO, which is commonly used in development mode. However, many applications forget to disable this option in the formal environment. Error ECHO can expose a large amount of sensitive information to facilitate the next attack.
The main cause of SQL injection attacks is the following:
1. The magic_quotes_gpc option in the php configuration file php. ini is disabled.
2. The developer does not check and escape the data type.
But in fact, the second point is the most
Install Apache + MySQL + PHP and apachemysql in Windows XP. Install the Apache + MySQL + PHP environment in Windows XP. the essential work of apachemysql in the whole wamp environment is as follows: 1. the configuration system can call the dll file
In Windows XP, install Apache + MySQL + PHP manually. apachemysql. Key points of manually installing the Apache + MySQL + PHP environment in Windows XP. the essential work of apachemysql in the whole wamp environment is as follows: 1, the
When you configure the php environment for the first time and use phpmyadmin, the system prompts "; unable to load mysql Extensions. check the PHP configuration"; ". I will introduce the solution to this problem. in the PHP runtime environment
The solution to Cannotmodifyheaderinformation appears in php. When writing a program one day, you can process the wrong address and write the cookie so that the user can directly jump to the page to be executed after logging on. However, when
The following uses PHP5 as an example to describe how to install and configure Apache and PHP5 in Windows. 1. download and install Apache. Download PHP from www. apache. orgdyncloser. cgihttpdbinarieswin32. Download PHP from www.php.net. 2. install
Explain the example code of PHP regular expression multi-line matching. In the course of study, many problems need to be solved continuously in practice. When matching PHP regular expressions, we only use regular expression functions under POSIX,
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.