Run mode
About PHP currently more common five major operating modes:
1 CGI (Universal Gateway Interface/Common gateways Interface)
2) FastCGI (resident type cgi/long-live CGI)
3 CLI (command-line run/command line Interface)
4 Web Module mode (Apache
In the work need to convert Office document software to PDF file, look for a lot of technical discovery use OpenOffice can complete this request, but the function that call it is all Java write, all need to invoke Java class in PHP, have the
Original Address:Use header or meta to achieve the difference between PHP page encoding
Author:Small leaf One, page coding
1. Use of Label Settings page encoding
The role of this label is to declare the client's browser with what character set code
The hash algorithm of PHP core technology and best practice
The hash table is also called a hash list, which accesses the record by mapping the keyword key to a location in the array to speed up the lookup. This mapping function is called the hash
Reproduced from: http://www.jb51.net/article/22501.htm
PHP header to define a PHP page for UTF encoding or GBK encodingPHP page for UTF encodingHeader ("content-type:text/html; Charset=utf-8 ");PHP page for GBK encodingHeader
PHP RSA Encrypted Transport code sample
When it comes to transmission of sensitive data, it is best for both parties to use cryptographic decryption. RSA Asymmetric encryption is a promising one.
The server can keep its private key and send
The first thing we need to know about this problem is what's going to affect PHP's performance. Is
1 What happens when PHP performance issues occur.
Improper use of 1php syntax (including some services that can be handled using PHP's own functions)
2011-10-31 12:44
because the Linux default Yum source is installed with PHP 5.1 package,
Yum Install php view later
Rpm-qa PHP
Php-5.1.6-23.2.el5_3
because some programs need to use the version above php5.2
so I found the information, finally
The last two days of the project needs, as the server is developing, the client progress slightly faster, no server to be linked. So I went to work, with PHP quickly wrote a number of web pages, as a test pile program, seven or eight web interface,
First of all, recommend a PHP lightweight identification class, mobile-detect specifically to identify whether the phone or PC-side access to the site, which can be based on the terminal type of access to the mobile browser to adapt to the Web site
Author: zccst
If the PHP version is 5.2.x
If it is a lamp environment, then the PHP source file php-5.2.x.tar.gz decompression will have a php-5.2.x folder.
Under the php-5.2.x folder./configure--prefix=/opt/php5.2, make, made Intall,
The php5.2
The PHP settings cookie can use the Setcookie function or the header function. You need to pay attention to the order of the strings when using the header method, and unexpected problems may occur if the order is incorrect. The correct order is
On the Internet under a picture-trimmed plug-in jquery.cropzoom.min.js, the function is very powerful, but also helped me prepare a php dynamic script, do not take much effort on the set. And it's pretty good to run. Crop + rotate picture, one key
The first step:
//path: phpcms/modules/content/content.php
//Construction method public
function __construct () {
parent::__ Construct ();
$this->db = Pc_base::load_model (' Content_model ');//content Model database operation
1. INSERT statement: "INSERT into data table name (Field 1, Field 2,....) VALUES (" Value 1 "," Value 2 ",.....)"For example: $sql = "INSERT into message (title,content,who) VALUES (' Message title ', ' Message content ', ' message person ')";2.
1.array_multisort()function to sort multiple arrays or multidimensional arrays.//对数组$hotcat按照count键值大小降序进行排序;$hotcat =array( array(‘1501‘=>array(‘catid‘=>‘1546‘,‘catname‘=>‘数组排序
1 using the browser to access the interface address (new Corn.bat file, the contents are as follows) "C:\Program files\internet Explorer\iexplore.exe" http://www.baidu.com The front is the path of the browser, need to quote, followed by the
Open a fileThe fopen () function is used to open a file in PHP.The first parameter of this function contains the name of the file to be opened, and the second parameter specifies the mode used to open the file:
The file may be opened in the
Let me record the journal account (only "sent by the server, displayed after the client reads "):
I. server-side environment setup (based on PHP)
1. The server construction work is skipped. The Environment version is listed as follows:
PHP version 5.
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