Object-oriented php operation mssql class
/*
Untested
*/
Class database_mssql {
Var $ database = NULL;
Var $ sqls = NULL;
Var $ host = NULL;
Var $ username =
PHP uses DES for encryption and decryption
There is an extension in php that supports the DES encryption algorithm: extension = php_mcrypt.dll Opening the extension in the configuration file cannot be used in windows. You need to copy
Php encode64 encoding class
Encode64 can obtain the minimum data encoded by 26 uppercase/lowercase letters and numbers plus the "-_" symbol. this string can be freely transmitted over the network, there is no need to consider the confusion
Php searches for substrings in a specified string
The strpos () function can be used to search for substrings in php. The strpos () function will try to find the position where the substring first appears in the source string. If yes, it
What is the Python regular expression method for matching Chinese characters?
If you search for Python regular expressions on the Internet, there will be tens of millions of results. it seems that you have a lot of learning needs for
DMNovel novel released in Dongmu bookstore
I like to read novels in my spare time (of course there are both genuine and pirated novels). many novel websites have advertisement and many restrictions, so I want to build a website without
Php reads zip files (delete files, extract files, and add files) instances
/*
Php extracts files from zip files
*/
$ Zip = new ZipArchive;
If ($ zip-> open('jquery5-screen scroll corner
Php generates a certain number of non-repeated random numbers
/*
* Array unique_rand (int $ min, int $ max, int $ num)
* Generate a certain number of non-repeated random numbers
* $ Min and $ max: specify
Php generates GUID
GUID: that is, Globally Unique Identifier (Globally Unique IDentifier) is also called UUID (Universally Unique Identifier ).GUID is a 128-bit digital identifier generated by a specific algorithm. it is used to indicate
Php intercepts functions that contain the length of a mixed string
It must be a combination of Chinese, English, and special characters.
// UTF-8 Chinese intercept, single-byte intercept mode
Function cn_substr_utf8 ($
Php sample code for reading files
This php code demonstrates in detail how to open, read, and close a file. in php, you can use fopen to open a file, use the filesize function to get the file size, fread to read the file content, and fclose
PHP class for sending emails
Class emailui
{
Static function runlog ($ mode = 'smtp ', $ B = '', $ c ='', $ d = ''){
}
Static function sendmail ($ toemail, $ subject, $ message, $ from = '', $ cfg =
PHP converts a full-width number to a half-width number.
// Convert the fullwidth number into a halfwidth number
Function GetAlabNum ($ fnum ){
$ Nums = array ("0", "1", "2", "3", "4", "5", "6", "7 ", "8"
Php algorithm instance sharing
Print 0 onlyThe specific number is determined by the input parameter n.If n = 5, 00000 is printed.
$ N = $ _ GET ['n'];
For ($ I = 0; $ I
Echo "0 ";
}
?>
Apache server configuration for PHP development
The configuration process is always smooth and secure.Yesterday, I got a PHP applet and wanted to run the test locally. However, my work computer didn't have an environment to install. so I
Sample code sharing for php qq internet OAuth
Due to the universality of QQ users in China, all major websites now provide QQ login ports as much as possible. let's take a look at the php version for your reference.
/**
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