API for querying train remaining tickets, 12306 official API code
$ V) {$ data [$ k] =! Is_string ($ v )? Json_array ($ v): $ v;} return $ data ;}} function doget ($ start, $ end, $ time) // get data using {if (empty ($ time) {$ time = date ('Y-m-
Website language English solution-implemented by changing the buffer zone /*
Website language English solution-implemented by changing the buffer zone
Function: determines the language selected based on the cookie. the default value is Chinese (no
Session stored in mysql
Session stored in mysql
db = &$db; session_module_name('user'); session_set_save_handler( array(&$this, 'open'), array(&$this, 'close'), array(&$this, 'read'),
Obtain whether the specified address is in /************
** Get whether the specified address comes in
** The parameter value is the address for determining the required incoming traffic and the second value. you can leave it blank and jump to the
Query Express outlet instance express 100 logistics query
Only html interfaces or json interfaces can be returned in the official documentation.
PHP code
/*** @ Desc get express information * @ param string $ code Express code * @ param string $
Monitoring log, found errors such as 500503 send email prompts php code
IsSMTP (); // telling the class to use SMTP $ mail-> SMTPDebug = 1; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $ mail->
Obtain the php code for the start date of the week based on the given date format YYYY-mm-dd.
/*** Get the start date of all weeks in a year * @ param $ year format 'yyyy' * returns the two-dimensional array subscript key1 value corresponding to
Character query test function regular expression verification
-->
$velocityCount-->
-->
[Code] PHP
// Obtain the character value function getMoralInfo ($ name) {$ name = str_replace ("+", "", $ name); $ f = mb_substr ($ name, 0, 1, 'utf-8'); $ s =
Intercept a specified size image in the middle
-->
$velocityCount-->
-->
[PHP] code
Function getcentreimg ($ src_ore, $ src_thumb, $ width, $ height) {$ img = getimagesize ($ src_ore ); // the function for loading the image to obtain the image
Phpaccess data import mysql php access data import mysql, we should all, do not spray Oh, if there is a mistake, change it
Open ($ connstr); $ rs = @ new COM ("ADODB. recordSet "); $ rs-> Open (" select * from TABLE_NAME ", $ conn, 1, 3); while (!
This article mainly introduces PHP-encapsulated multi-file Upload instances and usage, and analyzes in detail the definitions and usage of php multi-file Upload classes in combination with the instance form, for more information about
This article mainly introduces the latest five jQuery Image cropping plug-ins, which can help you easily implement the image cropping function required by your website. CropitCropit is a jQuery plug-in that supports Image cropping and scaling.
Sometimes we want to delete a pair of & lt; p & gt; tags in this html code, but to keep the content from being deleted, this jquery method provided in this article can be implemented simply. Sometimes we want to delete a pair
Label, but to keep the
Php operation file size helper class this class can determine the file size, even if it is greater than 2 GB, it can use different methods to determine a large file.
getFileSize($file);echo"";var_dump($filesize);
isWindows =
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