Draft 0.0.1
one. the Zend Framework specification is mainly as follows:
Zend Framework Coding Specification
http://bbs.phpchina.com/viewthread.php?tid=142789
two. General Specification
1. variable naming and class naming(1) type + variable name:
': Single quotes
": Double quotes
1. When using single quotes to output text, the contents of quotes are all treated as text,
eg
$face = "Interview technology";
Echo ' $face /ncsdn blog";
?>
The code to print to the page will be complete:
$face /
After several days of preparation and contact, it is now decided that Fujian PHP
CommunitySpecific arrangements for the first party:
Time :,Location: Conference Room of Xiamen University Library
Note:: Because the library has an access control
Mbstring library full name is multi-byte string that all languages have their own encoding, their number of bytes is not the same, the current PHP internal encoding only supports ISO-8859-*, EUC-JP, other coding languages for UTF-8 are not available
The simplest method is to find the PECL in the PHP installation directory.
Automatic installation:
#/Usr/local/PHP/bin/PECL install APC
Follow the prompts below to complete step by step
Configuration/Etc/PHP. iniAdd at the endExtension = APC.
Recently, the laptop system crashes and reinstalls the computer, because PHP is needed to run someProgramSo setup is indispensable. These records are only for your reference.
First prepare the installation package for Apache and PHP, here I select
The PHP tutorial provides multiple methods to obtain URL address bar parameters:
$ _ Server ["server_port"] // obtain the port
$ _ Server ['HTTP _ host'] // get the domain name or host address$ _ Server ['server _ name'] // get the domain name or
Today, I am dizzy for a day. I have nothing to do. I have to do something before going to bed. Otherwise, one day will be unavailable.
As a side dish, you can see some script injection, ASP, PHP, and other things.
So it is necessary to build a web
About Arrays:
Arrays in PHP are complex and more flexible than arrays in many other advanced languages.
Array array is a group of Ordered Variables, each of which is called an element.
The array can be numbered or associated, that is, the elements
1. php Interface Class: InterfaceIn fact, their role is very simple. When many people develop a project together, they may call some classes written by others, and you will ask, how do I know how the implementation method of a function is named? At
In applications, define is often used to define common parameter information to increase program readability and reliability.
In PHP, the constant name is a simple identifier, which cannot be changed during the execution period and is case sensitive
Configure a simple nginx + PhP Development Environment on Mac. For nginx, refer to the previous article. For PHP installation instructions, refer to this article.
Original article:
The GD library is a powerful php library for image operations.
Add a line of reference in PHP. ini: Extension = php_gd2.dll
Restart Apache. Make a test page var_dump (gd_info (). The output data indicates that the GD database is referenced
The PHP Extension function library is very large. It is officially unofficial. Here we only record some commonly used extensions. For this part, we only record some of the core functions, not a full record. For detailed descriptions of extended
First, we will introduce the usage of this function:
Definition and usage (PhP5)
The microtime () function returns the current UnixTimestamp and number of microseconds. Format of the returned string: msec SecSyntax
microtime(get_as_float)
Current motto:
When no database exists in the past, reading and writing files is one of the only tasks that our programmers can do on an empty night (maybe not necessarily ~~~). Therefore, even if this technology is so simple, fast, and common, we
PHP Web Service Development
Wso2 WSF/PHP (wso2 Web Services Framework/PHP, wso2 web service framework) is a PHP extension that allows you to create and use web services. It supports soap1.1, soap1.2, MTOM, Web service addressing, Web Service
The getenv ('remote _ ADDR ') method mentioned in PHP manual has many problems in obtaining the Client IP address, therefore, it is necessary to consider using a more comprehensive method to obtain the IP address of the user client more accurately.
It mainly determines whether the client uses a proxy. Pay attention to the judgment order and first determine whether the client uses the proxy http_x_forwarded_for.
Function get_onlineip (){
$ Onlineip = '';If (getenv ('HTTP _ client_ip ') &
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service