By
Lanf, Source: http://www.5ilinux.com/blog/archives/000075.html
Author: Zhang microwave
Today, I learned another trick from my friend Gao chunhui, that is, using tmpfs. After I digested it, I used it to implement a virtual disk to store squid
404 million users, many people know that if the url to be asked does not exist, it will show this aspect. in the past, in terms of processing 404, our usual practice was to write a single line of text, and some people may still beautify it, in
Sometimes, when we run the PHP program again
Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
Cause of the error: make sure it is not the cause of the program (such as an endless loop ), because the maximum memory
Install and manage Memcache installation packages in Linux: 1. memcache package: memcached-1.4.0.tar.gz2. php extension package: memcache-2.2.5.tgz install memcache to/usr/local/lib directory: [plain] # version may be different, choose your own
PHP Chinese Word Segmentation extension SCWS,1. Introduction to scwsSCWS is the abbreviation of Simple Chinese Word Segmentation (I .e., Simple Chinese Word Segmentation System ).This is a mechanical Chinese Word Segmentation engine based on the
CGI
CGI is a Common Gateway Interface. It is a tool for the HTTP server to "talk" with programs on your or other machines, the program must run on the network server.
CGI can be written in any language as long as it has standard input, output, and
Go to ext of the php source code package.[Root @ linux php] # cd/usr/local/src/php-5.2.17/ext/pdo_mysql[Root @ linux pdo_mysql] #/usr/local/php/bin/phpize (the phpize command is used to prepare the compiling environment of the PHP plug-in
Examples: how to convert html word in PHP
The following code describes how php transfers html to word. The specific content is as follows:
This is tested. This method is not good. The html page code should be written in php, but it can be run and
Oracle Support (oci8) and oracleoci8 enabled for PHP in Linux
A common problem with using php is: I forgot to add an extension when compiling php. I want to add an extension later. But I didn't want to delete the Directory and reinstall it because I
How to install curl extension in PHP in CentOSIf php has been compiled in the system, you need to add new extensions later. One way is to re-compile php completely, and the other way is to compile the extension library separately and extend it in
Introduction: This is a detailed page for imagecreatefromjpeg memory crashes caused by thumbnails generated by large images. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0'
Introduction: This is a detailed page of APACHE-based PhP4 and PhP5 co-existence under windws. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
1. Static as much as possible:
If a method can be static, it is declared as static, and the speed can be increased by 1/4, or even increased by nearly three times during my testing.Of course, this test method needs to be executed more than 100,000
Introduction: This is a detailed page for PHP to determine whether a remote URL is valid. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
After php4.1.0, http_get_vars is saved using the get variable. The get variable mainly comes from the following methods:
For example, the URL that requests the server to obtain information, use the form method as the get method. In this way, all
I try not to talk about big theory, for example, what is PNG.
PHP has bound its own GD2 Library since version 4.3. You can download and set it yourself. to check whether your PHP version supports the GD module (supports JPEG, PNG, wbmp, but does
I downloaded the latest recommended version. I didn't expect it to be sent to the jar, so I didn't. Later I summarized it and found that there were still many problems, so I shared it and hoped to share it with you.
It is helpful. During the
Q. Why is Chinese content not displayed in the browser when the Apache server is used?
A. The new version of Apache (2.0.x or later) sets the default language of the server to the Western European language.
This situation. The solution is to modify
Method 1: this can only be used when PHP is newly installed.
# Wget http://curl.haxx.se/download/curl-7.17.1.tar.gz
# Tar-zxf curl-7.17.1.tar.gz
#./Configure -- prefix =/usr/local/curl
# Make & make install
Install PHP
Just enable the switch --
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.