Yesterday, the website used to prompt the fatal error:out of memory (allocated 262144), and then Baidu search some solutions, the following I share to you friends.
From the above out of the memory (allocated 262144) see that it is more than 256MB,
Actually this is very simple, take care to follow the steps below:
Get the latest Apache 1.3 Kit at http://www.apache.org/dist/
Unzip (Ungzip) and unpack (Untar) to the path specified by Apache, such as/usr/local/src/apache-1.3.
Edit PHP, run
, UrlDecode () and Rawurldecode () decoding the string is UTF-8 format encoding, if the URL contains Chinese words, and the page set is not UTF-8, then the decoded string to be converted to normal display
PHP Tutorial Chinese URL codec detailed
This PHP 5.3 environment configuration method is to take advantage of apache2.2.16+php5.3.3+mysql5.1.49 configuration Oh, below to see the installation configuration Tutorial Oh.
This PHP Tutorial 5.3 environment Configuration method is to take
PHP Get server time (solve 8-hour gap problem) below these three to get the current time is very good to solve the 8-hour gap problem, as long as the acquisition time before adding Date_default_timezone_set (\ "asia/chongqing\"); When we solve the
PHP correctly parse UTF-8 string have a friend you need to refer to.
The code is as follows
Copy Code
$str = ' Today very happy, all decided to go to KFC to eat cola chicken wings!!! ';/*$str is the string to intercept$len
The best way is to create a new page, use it
, and load it into the browser. It shows all of the PHP parameter information, environment variables, specific variables of the Web server, HTTP related variables ... Wait a minute. The main reason for
In PHP, to end a script area, use "?>" or "?>
"(
is to add a new line). Meaning in the above program you need to add another newline tag to each PHP area.
Why is PHP like this? Because when you format HTML as normal, you don't need a new line. But
PHP tutorial Download jpg file as an empty solution
JPG format file, click Open in Browser to show as Red Fork
The code is as follows:
$filetype = "Image/pjpeg";Header ("Content-type: {$filetype}");
Header ("expires:0");Header
This article collects the PHP development often encounter some doubts or some small problems, we can refer to.
The difference between some of the above functions,
the difference between 1.isset () and Empty ()Both are used to test variables. But
This article introduces a common problem encountered in PHP development, Preg_match long string matching failure, have encountered the same problem of students can refer to.
Strings are longer, so it is doubtful that Preg_match also has a string
This article to introduce phpMyAdmin 3.5.8 in Safari blank screen solution, because there is no problem in other browsers, only in the Safari browser blank, so just solve the white space in Safari.
The following line was added at the end of the
1062-duplicate entry for key 1
We sometimes come up with the problem of importing data like 1062-duplicate entry ' "for key 1.
So what's the reason, yesterday when I was importing data, I found this problem.
The reason for this analysis is that
In PHP to implement the jump there are many ways, the most common way to jump is to use the header function to operate, of course, you can also enter the JS jump in php form, let me give you a brief introduction.
PHP Jump
The code is as
This article to the students to introduce the use of memcache to build a simple memory message queue, with a good example to introduce to you, I hope this method for everyone to help OH.
Memcache function is too simple, only set get and delete, can
We generate Excel will use the Phpexcel class, let me introduce you in the generation of Excel column name more than 26 columns greater than Z problem resolution.
This is the method in the Phpexcel class. I found it today, record the memo.
This article to introduce the PHP control page browser cache and enable the Gzip transfer page method, I hope this code will help you with this, and no server permissions friends can do this to achieve Server Gzip page transfer.
PHP Instance gzip
form submission or URL get value in the Web site we may encounter some security issues, below I summarize some commonly used to filter some of the dangerous special characters of the solution, I hope this tutorial will help you.
In general, for the
In this paper, two examples are used to analyze the usage and format of PHP date and MySQL date, as well as the field types and query efficiency tests that include the MySQL usage date.
Php
int value:Time (): is the number of seconds to return from
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