1. Download and install Xdebug1.1 to http://xdebug.org/download.php download for your PHP version of the Xdebug1.2 Copy to the PHP installation directory Ext folder, renamed to Php_xdebug.dll1.3 Configuration Xdebug
Add the following in the php.ini
Connection code
Echo ' a ';$CN = mysql_connect ("localhost", ' your MySQL username ', ' your MySQL user password ') or Die (Mysql_error ());if ($CN){Echo Phpinfo ();}Else{echo ' MySQL connect fail ';}?>
Because the server is using a security
Session configuration instructions in php.ini
The following are the necessary configuration steps to enable the session to run
Manually Configuring the PHP runtime Environment, the most easily forgotten is the server-side session file storage
A) support for Php_curl components
1. Find php.ini, (generally in c:/windows/php.ini), modify Extension=php_curl.dll Remove the preceding semicolon.2. Check the PHP installation directory/ext directory to see if there are php_curl.dll files.3. Copy
Download the php5:php tutorial. Net/distributions/php-5.2.6-win32.zip "target=" _blank ">Http://cn2.php.net/distributions/php-5.2.6-Win32.zip Download Apache:http://down.chinaz.com/soft/18000.htm I. Installation and commissioning of PHPBecause PHP
With Pear::benchmark, you already know how to test your code, know how to determine if your code is fast or slow, and which part is slower. So the next thing I want to say is how to eliminate or optimize that part of the slow code. My personal main
Get Client IP Address?
Open Source Code
function GetIP () {if (getenv ("Http_client_ip") && strcasecmp (getenv ("Http_client_ip"), "Unknown")$ip = getenv ("Http_client_ip"); Open sourceelse if (getenv ("Http_x_forwarded_for") && strcasecmp
Eaccelerator Accelerated PHP Tutorial Program
What is Eaccelerator
Concept:Eaccelerator is a free and open source PHP accelerated, optimized, compiled, and dynamically cached project that can
By caching the PHP code after compiling the results to
Quote we say two one is a variable reference is a file include reference,The include () or require () function allows you to insert the contents of a file in a file before the server executes the PHP tutorial file. In addition to the way they handle
I. Overview
PHP tutorial-excelreader is a PHP class that reads the contents of an Excel XSL file.
It's download URL: http://sourceforge.net/projects/phpexcelreader/
This blog download address: phpexcelreader.zip
Test Excel file: Test. xls
PHP Ads Click Statistics Code, last night there are several IDC network to work with this site to put some ads, but I want to see the effect of advertising after the write a simple advertising statistics code, here is only the statistics can not IP
Header ("CONTENT-TYPE:TEXT/HTML;CHARSET=GBK")//output encoding to avoid Chinese garbled$page =isset ($_get[' page ')? Intval ($_get[' page '): 1; This is to get the value of page in Page=18, if there is no page, then the page number is 1.$num = 10;
Presumably you'll use JavaScript to randomly display pictures. But if the image of the data (such as links) is often changed, or by the user modified, increased, how to do? I have a way here.Put the picture information (such as name, address, link,
What is a Session?Session refers to a series of actions or information starting from beginning to end. For example, the whole process from going to a movie theater to going out of the cinema can be called a Session. Cookie stores data on the client
One-dimensional array search is simple. in_array ()If the value parameter is a string and the type parameter is set to true, the search area is case sensitive. The code is as follows:Copy code $ People = array ("Peter", "Joe", "Glenn",
PHP has many mvc frameworks, such as Yii, CodeIgniter, ThinkPHP, and other popular frameworks. Using the MVC pattern for web page development, we can easily compile web programs. Their working principles should also be of interest to everyone. Next
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