When writing or modifying a PHP file saved with UTF-8 encoding, there are sometimes some problems:
1. The page shows a "nobelium" word, the other blank;
2. Cannot log in or log out;
3. A blank appears at the top of the page;
4. Error warning on top
Environment:
PHP Version 5.2.9-1
Apache 2.2.11Mysql5.0
PDT (PHP development Tools)
http://www.eclipse.org/pdt/downloads/
Download PDT All-in-ones, my next version is Pdt-all-in-one-win32-2.0.0ga.zip
http://www.xdebug.org/download.php
Here we use phpMyAdmin to manage MySQL database GUI.
Use version:
Apache_2.2.11-win32-x86-no_ssl (MSI installation)
Mysql-essential-5.1.23-rc-win32 (MSI installation)
Php-5.2.8-win32
Phpmyadmin-3.0.0-all-languages
1. Apache
1.1. Installing
Microsoft IIS 7.0 and later
This section contains instructions-Manually setting up Internet information Services (IIS) 7.0 and later PHP on Microsoft Windows Vista SP1, Windows 7, Windows Server, and Windows Server R2. For instructions on
PHP optimization is divided into three parts
1, encoding optimization
2,opcode Cache
3, variables and data caching
Coding section
1, the string connection is using "," instead of "." No.
echo "HI". " There "." Good ";
echo "HI", "there",
First, the basic structure of PHP:
Using the Include function
Your page Subject and domain name
The above content is the title of each page we use, do not move.
Head of each page:
"" Your others meta tag
"" Your others meta tag
"" Your
PHP4: Behind the Miracle
In 1995, Rasmus was writing his personal homepage in PHP; today, PHP has become the world's most popular scripting language, more and more sites choose to use PHP, even Yahoo has abandoned its own script and use PHP to
The global variable $_server[' path_info ' in PHP is a useful parameter, and many CMS systems use this parameter when beautifying their URLs.
For the following URL:
Http://www.test.com/index.php/foo/bar.html? c=index&m=search
We can get
Because PHP is a zip file (not installed version), the installation is relatively simple
Unzip the line. Rename the extracted Php-5.2.1-win32 to PHP5. and copy it to the C drive directory. That is, the installation path is c:\php
1 Locate the php.
Failed loading/usr/local/zend/lib/optimizer-3.3.3/php-5.2.x/zendoptimizer.so:/usr/local/zend/lib/ Optimizer-3.3.3/php-5.2.x/zendoptimizer.so:cannot Restore segment prot after Reloc:permission denied
Originally this is selinux to make the ghost,
PHP Date/time functions
Definition and usage
The strtotime () function resolves the datetime description of any English text to a Unix timestamp.Grammar
Strtotime (Time,now)
Parameter description
Time
Specifies the
PHP Speed of Light tutorial
Date: 2010-07-29 | Source: Redice's Blog | Author: redice | 182 people onlookers | 0 people applauded! by Redice 2010.07.29
Redice@163.com
For the company intern written PHP learning outline, according to their own
Session solution When a client disables cookies [go]
PHP 2009-09-13 12:12:06 Read 31 Comments 0 font Size: Big Small Subscription
A friend who has used a session in PHP may encounter a problem where session variables cannot be passed across
What is a regular expression:
In short, regular expressions are a powerful tool that can be used for pattern matching and substitution.
Find traces of regular expressions in almost all software tools based on the Unix/linux system, such as Perl or
http://www.rfidchina.org/products/product.php?id=9740
After the URL Plus ', the returned page, although there is no error message, the page error is missing the content,
Then is and 1=1, and 1=2, respectively, is the normal information and ' the
Http://realzdf.blogbus.com/logs/1155121.html
1. "PHP Programming":Programming PHPPublisher: China Power PressFormer publishing house: O ' Reilly&associates,inc[Mei]rasmus Lerdorf &kevin Tatroe Deng Yunjia and other translationsPublication date: July
Serialize () and unserialize () are explained in the PHP manual as:
Serialize? Generates a storable representation of a value
Serialize? Produces a representation of a value that can be stored
Unserialize? Creates a PHP value from a stored
I. Comparison of languages
PHP is the server scripting language that interprets execution, first PHP has a simple and easy-to-follow feature. Grammar and C are more alike, so programmers who have studied C can quickly become familiar with the
The following are the steps to add a GD library to PHP under Linux:
First, download
Gd-2.0.33.tar.gz http://www.boutell.com/gd/
Jpegsrc.v6b.tar.gz http://www.ijg.org/
Libpng-1.2.7.tar.tar
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