In PHP, the file operation is relatively simple, the first is the file open, in PHP Open file will use the fopen function, the basic usage is:
fopen(string $filename, String $mode) $filename is the file name, $mode is the open method. The specific
Function: __autoload () future will be discarded (spl_autoload_register () substitution)
Function: When the class name error, the __autoload () use reason: When writing code will refer to a lot of require or include, this will cause code confusion
In PHP development work is very much used to timeout processing to the occasion, I say a few scenarios: get the data asynchronously if a backend data source gets unsuccessful, it skips and does not affect the entire page presentation in order to
Install configuration php-fpm to build a nginx+php production environment
Nginx itself can not handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and the results
the php-fpm in PHP 5.3.3 no longer supports PHP-FPM previously available commands such as/USR/LOCAL/PHP/SBIN/PHP-FPM (Start|stop|reload), which require signal control:
The master process can understand the following signals
Int,term immediately
Author: zccst
Installed extensions include: SOAP, pdo_mysql, curl, etc.
1, install Curl
Cd/lamp/php-5.2.6/ext/curl
#/usr/local/php/bin/phpize#./configure--with-php-config=/usr/local/php/bin/php-config# make# make InstallHere you will be prompted
Author: zccst
1, Time zone problem
Warning:phpinfo () [Function.phpinfo]: It is isn't safe to rely on the system ' s timezone settings. You are are *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case
The lamp environment was already installed on the centOS6.6, because the php5.3 version is relatively low, the use of Remi Source to upgrade to 5.5, and then the problem comes: the project used in the Php-xml in CentOS can not find the Yum
Often asked to build the tree example, in fact, very simple, they write a, even if you throw a brick it. CSDN Forum Address: http://topic.csdn.net/u/20081029/11/f2faab7f-f8fb-43a8-906a-a7bb83063515.html + ":"-"; $name = $icon . $name;
Go from: http://hi.baidu.com/zdfgng/item/329b421a0de13c1de3f98653 php memchche usage on Windows
Memcache Related Introduction http://edu.codepub.com/2009/0614/6129.phpMemcache is a high-performance distributed memory object caching system that can
The experience of my own learning PHP to share out, not only to learn PHP friends to provide a way of thinking, but also to sort out their own ideas, good for the follow-up tutorial open a head!
Learning in fact there are methods, for example: in
Server local encoding: GBKResponse Encoding: iso-8859-1 (Tomcat server Default response encoding iso-8859-1)Output: gbk->iso-8859-1Right way:1, change response code response.setcharacterencoding ("GBK");2. String result = new String (Str.getbyte
Zend Studio loads an existing PHP project
I got a PHP project a few days ago. intend to study under. After a long day of tossing and turning it into the zend inside. Write a blog here for a rainy event. The following is an operational process.
One, Installation of memcached
1. Download the memcache Windows stable version, extract and put under a certain disk, such as in c:\memcached
2. Enter ' c:\memcached\memcached.exe-d install ' installation at terminal (also known as cmd Command
2-1-1php Environment Build installation Server I win the workplace
One, Web server: Apache
Configure server: C:\Apache2.2\conf\httpd.conf
Apache Home directory: DocumentRoot node
Directory:apache's Browse directory and home directory remain
First you need to determine if there is no installation php_pcre:
Apt-get Update
Apt-get Install Libpcre3 Libpcre3-dev
Then determine if there is no installation of zlib, and the version must not be too old (I was installed 1.2.11 to succeed),
One, I understand the Ajax
Ajax is a new technology in recent years, mainly using JavaScript technology to implement the user data implicit submission, and allow the program to synchronize or asynchronous processing of data sent by the server.
After installing good apache2+php5, now want to install the last MYSQL5 play.
With the source code installed good mysql5, found that the original Linux to add new extensions to PHP, unlike in Windows, remove the semicolon annotation on the line ~
A
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