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,
Use PHP header to implement file download, under IE6 always prompt cannot download, Google browser Normal, so should be IE problem, ie has a bug, Microsoft Official website has the description. Error message: "Internet Explorer cannot download a
Modular Installation:
First move the Php4ts.dll to or copy to the Windows/system (Windows 9x/me) or Winnt/system32 (Windows nt/2000/xp) directory, overwriting the original existing files; Then modify the Apache configuration file httpd.conf:
The author of the previous paragraph of a project, which contains a user registration system, the use of the password recovery function, simple collation, write some experience.
First, we assume that you already have a user registration system.
A friend said that these two are actually the difference between the wording, the following I would like to show you about the difference between global and $globals, the need for a friend can be specific reference.
According to the official
Include is a function in PHP to call a file, by default it can not be directly like include (a.php?id=1) operation, let me introduce the solution include can not take parameters to call the solution.
Sometimes it is necessary to use the include ()
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
A powerful file type detection function, it can determine what type of file you upload, this you have no way to install the past, the need for friends can refer to.
The code is as follows
Copy Code
***** @access Public*
Q: My MySQL encountered a 1067 error
The error message is:
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
For:
Workaround:
1. Check your MySQL directory for system user rights.
2. Delete
This article describes a new function of php5, we introduce the use of PHP magic function __autoload and some problems, the following summarizes the use of the process of some problems and considerations.
__autoload () Usage
Some of the lectures in
PHP's STRTR function, the performance is higher than the Str_replace function, can replace the str_replace to use. There are two forms of STRTR:
String Strtr (String $str, String $from, String $to)String Strtr (string $str, array $replace
A friend who used PHP for the first time may find that when we configure the PHP environment, we use the PHP date function to output the date and find that the date is related to the correct date for 8 hours.
Cases
The code is as follows
Find a config.inc.php tutorial
First, use the cookie licensing mode to change ' auth_type ' to ' cookie ', and then modify ' Blowfish_secret ' to use an arbitrary string as a cookie encryption string, if there is no encryption key, the system will
How to become a specific user group
Answer
I'll answer that.
Other Solutions
Other sections can be called add-ons to see accessories
Other Solutions
What do you mean, not read
Today when PHP calls the session prompt fatal Error:session_start (): Failed to initialize storage module:files (session.inc.php on line 83) wrong , let me share with you how this problem is handled.
Original solution: Fatal Error:session_start ():
This article to the students to introduce PHP data type conversion Learning notes, if you know the PHP data type is not clear to enter the reference OH.
Common data types are string, float (single-precision float float, double-precision
This article to the students to introduce two simple examples, PHP array to XML and XML conversion array, I hope this article will help you friends.
PHP Array to XML
The code is as follows
Copy Code
function Array2xml
Problem
An algorithm for infinite classification of PHP
Workaround
Ask for PHP Infinite classification of the algorithm, mainly the problem of sorting. How to make the level three classification under the level Two classification under the
Get URL address in PHP We have a lot of functions to use, mainly global variable server provides me with a lot of methods, let's take a look at it.
Common functions
The code is as follows
Copy Code
Get domain name or host
There are a lot of PHP floating point processing functions in PHP, including like Ceil,floor,round,intval after they have been processed to return the number of floating-point numbers we want, let me introduce some of the usage of PHP floating point
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