PHP $ _ SERVER details. The copy code is as follows: $ _ SERVER [HTTP_ACCEPT_LANGUAGE] browser language $ _ SERVER [REMOTE_ADDR] Current user IP address. $ _ SERVER [REMOTE_HOST] Current User host name $ _ SERVER [
The code is as follows:
$ _
Page 12th of the PHPCURL function library. Curl_close-close a curl session curl_copy_handle-copy all content and parameters of a curl connection resource curl_errno-return a number containing the current session error message curl_close-close a curl
Description of the usage of regular expressions in MySql. A regular expression defines a string rule. The simplest regular expression does not contain any reserved words. For example, the regular expression "hello" only matches the string "hello. A
Use the Sina IP library to obtain the detailed IP address
Use the Sina IP library to obtain the detailed IP address
Class Tool {
/**
* Obtain the IP address location (Sina IP library)
*
* @ Param $ ip
A good PHP verification class
/**
* Verification class
*
* @ Lastmodify 5-5-16
* @ Author jy625
*/
Class VerifyAction {
/**
* Whether it is null
*/
Public static function
A php class for processing cookies
Login
Register
Subscribe to RSS
Website map
Script sharing network
// CookieClass
// Copyright (C) 2005 JRSofty Programming.
//
Php converts linux runtime to a better-looking format
Php converts linux runtime to a better-looking format
$ Exec = shell_exec ('uptime ');
$ Uptime = explode ('up', $ exec );
$ Uptime = explode (',', $ uptime [1
PHP obtains code for last week, this week, last month, this month, this quarter, and the last quarter.
Echo date ("Ymd", strtotime ("now"), "\ n ";
Echo date ("Ymd", strtotime ("-1 week Monday"), "\ n ";
Php determines whether a visitor is a search engine crawler
We can use HTTP_USER_AGENT to determine whether it is a spider. search engine spider has its own unique logo. The following column takes a part of it.
Function
Download files in any format
Supports file downloads in any formatThe function has two parameters. The first parameter is the file completion path on the server, and the second parameter is the download display file name.
/**
We are looking for a part-time PHP program development engineer.
We are looking for a part-time PHP program development engineer.Requirements for part-time engineersWork maintenance:Front ends of two websites: page modification, column
A very useful verification code tool
/**
* Verification code
*/
Class Base_Tool_Verify {
/**
* Verification code generation method
*/
Public static function
I changed the ci loader function. could you help me?
Protected function _ ci_load ($ _ ci_data ){
// Set the default data variables
Foreach (array ('_ ci_view', '_ ci_vars', '_ ci_path', '_
Php two-dimensional array sorting by a field (sorting the query result set)
We often encounter sorting by a key value of a two-dimensional array, and then suddenly think of a function in the onethink project, so it is extracted for
Learning about PHP
Unconsciously, I have been to my brother's PHP training school for two months. during these two months, I have learned a lot. What's amazing is that I have finished writing a notebook, sadly, the penalty copy and homework
Internal management system
Simple recording of expenses, income, and reimbursement.The problem is how to calculate the income table (income)-output table (payout) difference.If you need a complete set of source code, you can directly leave
12306 latest api for querying the remaining ticket and price of train tickets (PHP)
In fact, this code has come out a long time ago, but it has never been put on open source China and has been put on my blog. of course, the program is not
Multi-threaded cURL
This is a flexible multi-thread call cURL.This is different from the sample provided in the php manual http://us2.php.net/manual/zh/function.curl-multi-select.php, the code execution efficiency is much higherThere are
PHP instance: detects and clears the BOM information starting with the file.
Ini_set ('memory _ limit ','-1 ');
/* Check and clear BOM */
$ Basedir = dirname (_ FILE _); // scan the current FILE path and
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