1. Installation Configuration Apahce
Installation configuration Apache is relatively simple, followed by the Installation Wizard will be able to take a step down. At most, you need to be aware of where to configure the port, if you have installed
We often see a lot of strange php syntax in the wordpress template of a blog program, such as:
Copy CodeThe code is as follows:
The empty
For a lot of PHP enthusiasts have never seen Ah, what are these things? Are those blog developers
1 Find the character position function:
Strpos ($str, Search,[int]): Find the first position of search in $str starting with int;
Stripos ($str, search,[int]): function returns the position of the first occurrence of a string in another string. This
One post learn PHPSystem length 32678 bytes, remove punctuation, also can play 10,000 words, if write full, that is not short.
In the spirit, perverted simple, smooth in the end of the MJJ for the vast number of impetuous to browse the principle, I
Introduction of APC
The alternative PHP cache (APC) is a free and open opcode cache for PHP. Its goal are to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
APC Official website:
There is no need to use Var in PHP, but when a variable is a member of a class, using Var is no problem.
In fact, this is a very easy problem to solve. In my opinion, familiar, hehe, recently learned JavaScript has learned to use VAR declaration
1. Use a SQL injection cheat sheetA basic principle is to never trust user-submitted data.
Another rule is to escape (escape) when you send or store data.
Can be summarized as: Filter input, Escape output (FIEO). Input filtering, output
For example, the current file is placed under (d:\www\), the file name is test.php.
The code for the test is as follows:
Copy CodeThe code is as follows:
Echo __file__; Get the absolute address of the current file, result: D:\www\test.php
echo
Copy CodeThe code is as follows:
/* pre-defined array:
* AUTO global variable---Hyper global array
*
* 1. Contains data from the Web server, client, run environment and user input
* 2. These arrays are more specific
* 3. The global scope
There are more and more people playing micro-blog, and the third-party application of micro-blog development is more and more, they began to contact the Sina Weibo API development, Sina Weibo API development of more resources, Sina Weibo provides a
Author: Spider
I'm going to have a little php pony too.
Copy CodeThe code is as follows:
Header ("content-type:text/html; charset=gb2312 ");
if (GET_MAGIC_QUOTES_GPC ()) foreach ($_post as $k = $v) $_post[$k] = stripslashes ($v);
?>
if (! (
Generally, there are 2 ways to export doc documents, one is to use COM, and as an extension of PHP to install to the server, and then create a COM, call its methods. Servers that have installed Office can call a COM called word.application, which
MemcachedHave a
Statscommand, through which you can view many status information for the memcached service.
here's how to use it:Enter the Telnet host name port number directly on the command line, connect to the memcached server, and then after
Before the prompt time a Bo friend, suggested that I provide PHP development environment of the building article. Of course, we generally developed under the Windows platform, mostly,
Well, today I am in the Windows platform to build PHP debugging
Varnish is a high-performance open-source HTTP accelerator, and Norway's largest online newspaper, Verdens Gang, used 3 varnish instead of the original 12 squid for better performance than before.
But compared with the old squid, each has its
I. SummaryAll Web programs will use the session to save the data. Using a separate session server can solve the session sharing problem in the load balancing scenario. This article introduces several methods of establishing session server under the.
Mod_gzip is an Apache module whose function is to compress static HTML pages using gzip, and the browser that adheres to the IETF standard can accept gzip encoding (IE, Netscape, etc.). Mod_gzip can increase the download time of the page by up to 4-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.