This article describes a variety of PHP cannot modify header information-headers already sent by set solution, there is a need for some friends can refer to.
Set output_buffering to on in PHP config file php.ini. Open.
Output_buffering = On
---------
Some friends will show no such file or directory error when using MySQL connection, let me summarize the workaround.
Connection code
The code is as follows
Copy Code
$this->linkid = @mysql_pconnect ($host, $user,
This article describes the solution to the fatal Error:call to undefined method mage_adminhtml_block_abstract::getexceptions (), and friends who have encountered such problems can refer to it.
Magento error occurred during product import:
"Fatal
In PHP If you are configuring the installation generally by default does not support the Curl series function, if you want your PHP environment to support the curl function, we can refer to the following methods to solve.
Modify your PHP
PHP session function, has been difficult for many beginners. Even some veteran, sometimes confused. In this article, we will make a simple summary of these questions so that we can consult them.
1. Error message
Reference
The code is as
Here are two examples of the use of Ord as an example of character ASCII to judge the problem of Chinese garbled characters, this function we can refer to the http://www.bKjia.c0m/phper/php/41030.htm article, it is very good to introduce the use of
If you are using a standalone server with permissions to modify the configuration file, setting the time zone can be done by modifying the Date.timezone property in PHP.ini. We can set the value of this property to one of \ "asia/shang\", \
PHP Basic article detailed ASCII code table and character conversion, discuss the ASCII code comparison chart and character conversion to decimal, octal, hexadecimal and HTML methods
Universal ASCII Code table
graphic ASCII code comparison chart ,
This article summarizes the PHP development may often encounter some of the PHP connection to the MySQL database of some of the problems and solutions to share, there is a need for friends to refer to.
Question One
Today to install MySQL and PHP,
When we use PHP cache technology, we will be prompted PHP class X has no unserializer let us introduce the solution to this problem.
PHP has reached the 5.3.8 stable version, and is ready to upgrade the company's production server PHP from 5.2.17 to
PHP Tutorial Chinese garbled
The Chinese name is garbled because:FCKeditor using UTF-8 encoding,Your own machine, like Windows.The file name uses the GBK encoding,Need in upload, change the code, from UTF-8 to GBK
==> first idea, transcoding ideas,
The first is the PHP page encoding
1. The encoding of the PHP tutorial file itself should match the encoding of the Web page
A. If you want to use gb2312 encoding, then PHP will output headers: header ("content-type:text/html; charset=gb2312 "),
This article to introduce you to the PHP header 404 error contains files garbled solution, have encountered such problems of students can enter reference.
Usually in PHP to determine a non-existent resources (such as category, product does not exist)
Apache server address URL Chinese does not display the solution correctly
We use a URL encoding function in the PHP tutorial, which can be used to solve the problem, as in the method.
$interest = "Arts";$homepage =
If you know a little bit of English on the upload filetype not allow, is the type of file you upload is not allowed, but I upload is the picture how can not upload it, and then search for a reason is the DEDECMS engineer wrong variable.
Error
Today in the use of the empty function is the appearance of fatal Error:can ' t use function return value in the Write context error prompt, I think it is strange, this function I have used n long how today, the following people to see my analysis
This article to introduce to you in Win2003 use Preg_match_all lead to Apache crash solution, have encountered this kind of problem friend can enter reference.
apache/2.2.9 (WIN32) + php/5.2.17, in the use of regular expressions Preg_match_all (such
PHP's global variables are a little bit different from the C language. In the C language, global variables are active in functions unless they are shrouded by local variables. This may cause some problems, and some people may inadvertently change a
MySQL method using PHP
PHP provides a library of MySQL functions from the outset. Many programs rely on mysql_connect, mysql_query, MYSQL_FETCH_ASSOC, and so on, but the PHP manual suggests:
If you are using a MySQL version after 4.1.3, then it is
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