The following error occurred while compiling the PHP installation manually
/usr/local/src/php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:73:undefined reference to ' Libiconv_open '
/usr/
1. Open File function
fopen (): For opening a file, you need to specify open mode when opening
Open mode
If the file does not exist, it is not created automatically
R: Read-only mode opens and points the file pointer to the beginning of the file
In many landing interface will have a week-free function, the principle of implementation is, the option to login-free in front of the Web page as a checkbox, after the user select a post to send to the server, the server through Setcookie this
Linux Environment installation PHP fileinfo extension
Windows Environment installation extension is relatively simple, just copy the DLL to the extended directory, modify the corresponding extension in the php.ini.
The following is an
Here is the curl way, so we must first ensure that the Curl function library open: In the php.ini file, extension=php_curl.dll before the semicolon removed
Code on:
/**
* analog post for URL request
* @param string $url
* @param array $post
Good tools are important for developing Web projects. I have to use PHP for project development. PHP in the development of more than the use of tools, but think Zendstudio development more comfortable. In the configuration of Zendstudio encountered
Here to configure 2 sites (2 domain names) For example, n sites can increase the adjustment, assuming:
IP Address: 202.55.1.100
Domain 1 example1.com placed in/www/example1
The basic ideas and steps for configuring Nginx virtual hosting are as
four ways in which PHP stores an array in a database
recently encountered a problem, how to use PHP to store the array in the database, through their own multi-party search and research, summed up the following four methods:
1.implode () and
In PHP, some useful functions open source is very convenient to prevent your site from all kinds of attacks, such as SQL injection attacks, XSS (Cross site scripting: Cross-site scripting) attacks. 1. mysql_real_escape_string ()
This function is
PDO Introduction
PDO is a "database access Abstraction Layer", the role is to unify various databases (MySQL, MSSQL, Oracle, DB2, PostgreSQL ...). Access interface, it can easily switch between different databases, making the porting between
PHP source code Compilation installation Configuration
Download Address
http://php.net/downloads.php
CentOS under preloaded dependencies, specific to their corresponding add general conditions below enough
Yum install gcc make gd-devel
One, the differenceThe session is on the server side, and the cookie exists on the client!!Session does not require cookies to support and will not be affected by browser-side settings, can record the information of each visitor, independent on the
1. PHP session working principle
The session file is stored on the server side and, by default, the directory saved by the session file is specified by Session.save_path, the filename is prefixed with sess_, followed by the session ID, such as:
I. Description of Sssion1, through the session (cookie is another solution) to record the user's information, for the user again in this capacity to request the Web server to confirm. The invention of the session allows a user to save his
The environment of this article is Ubuntu 12, and other systems can check in or communicate with me.
1, install Nginx
This step is relatively simple, direct sudo apt-get install Nginx, you can install. After installation, you need to set the port
Today I studied the use of PHP to send e-mail, summed up, there are two ways:
first, use the PHP built-in mail () function
After looking at the manual, I started to write the code directly, as follows
The result is a direct error, as
Often in the major forums or news section of the details of the page to see the comments function, of course, not only directly to the content of the comments to be so simple, you can reply to other people's comments, others can reply to your
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