This article describes the method of Php+ajax to realize the automatic saving of articles. Share to everyone for your reference. The specific analysis is as follows:
Php+ajax article automatic saving method the main is to facilitate the user,
The example in this article describes a workaround in which PHP reads the ntext field return value of MSSQL as NULL. Share to everyone for your reference. The specific analysis is as follows:
Today in the use of PHP to connect the MSSQL database
Spam is annoying, here is a way to automatically screen robots from your site to collect e-mail addresses.
Copy Code code as follows:
function Security_remove_emails ($content) {
$pattern = '/([a-za-z0-9._%+-]+@[a-za-z0-9.-]+\.[ a-za-z]{2,
First type:
Copy Code code as follows:
? $str = "This is a test \ n";
$patten = Array ("\ r \ n", "\ n", "\ R");
?//First replace \ r \ n, then exist \ n, last replacement \ r
$str =str_replace ($order, "", $str);
?>
After setting the read-only property for the index.php file, the Trojan does not have permission to add ads to your file at the end.Below we look at the specific code, set index.php Read only:
Copy Code code as follows:
function set_
In order to allow PHP to connect MSSQL, the system needs to install mssql,php, and in php.ini configuration, will
Extension=php_mssql.dll in front of;
1. Connecting MSSQL
Copy Code code as follows:
$conn =mssql_connect ("Instance
I do not deceive you said, I am also a shuangse qiu enthusiasts, often buy, but the delay has not been the first prize, haha.Here for you to introduce a random generation of PHP lottery Shuangse Qiu number two ways for friends to learn the reference.
Copy Code code as follows:
$sql 3= "CREATE temporary TABLE atmp_table (uid Int (one), Dnum int () NOT null)";
mysql_query ($sql 3);
$sql 3= "INSERT into Atmp_table (uid,dnum) SELECT Uid,count (soid) as Dnum
From ' Cy_score2 '
Where (
Callout symbol:single-line annotationMulti-line annotationUse of Quotes' single quotes, simple strings, without any processing directly brought over;"" Double quotes, PHP dynamic processing and then output, generally used to process the $
Modifying a PHP array in a function by assigning it to a formal parameter as an argument in the function does not affect the array itself.
Indicates that the pass in this procedure is a value pass, the array variable is not a reference to the
Here is mainly to share a very useful PHP function, the code is very simple, not much nonsense, the small partners need to use the words directly.
Copy Code code as follows:
PHP gets the full URL address of the current access
function
This example describes the simplest string matching algorithm in PHP. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
/*
The simplest string matching algorithm PHP
This example describes how PHP intercepts the size of a specified picture. Share to everyone for your reference. The specific analysis is as follows:
Imagecopyresampled ($newim, $im, 0, 0, 7, 174, $new _img_width, $new _img_height); Original Size x
The example in this article tells about fsockopen usage in PHP. Share to everyone for your reference.
The implementation methods are as follows:
Copy Code code as follows:
$FP =fsockopen ("127.0.0.1", 80); Open Data Flow
if (!
This article illustrates the method of implementing the counter in PHP. Share to everyone for your reference. Specifically as follows:
This collection of three PHP counter code, the three of them have a common point is all do not need a database,
This article describes in detail the introduction of PHP under the memcached knowledge and examples. Share to everyone for your reference. Specifically as follows:
Under what circumstances should memcache be used and under what circumstances?
When
This article describes the PHP generation sHTML class and its usage. Share to everyone for your reference. Specifically as follows:
Copy Code code as follows:
Class shtml{
var $DataSource; Array arrays
var $Templet; String strings
var $
The example in this article describes the Adodbzip class program code in PHP. Share to everyone for your reference. Specifically as follows:
Copy Code code as follows:
/**
* Adodbzip 1.1
*
* Code Example:
* include_once '
This example describes the use of the PHP Alipay interface. Share to everyone for your reference. The specific analysis is as follows:
Now popular website support platform, Alipay is the boss, now we will tell you how to use the Alipay API to do
1. Add Expansion pack
Php_memcache.dll
2. Add in PHP.ini
Extension=php_memcache.dll
3. The procedure
Copy Code code as follows:
Create a Mem object instance
$mem =new Memcache;
if (! $mem->connect ("10.18.110.213", 11211)) {
Die (
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