Train ticket query API, 12306 the official API-PHP source code

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-

The website language English solution is implemented by changing the buffer zone-PHP source code

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-PHP source code

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 the specified address-PHP source code

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 delivery network instances-PHP source code

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 logs, 500503 or other errors found, send an email prompt-PHP source code

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->

Computing constellation PHP-PHP source code

Computing constellation computing constellation PHP 'Trease'), array ('19' => 'pisces '), array ('21' => 'Aries '), array ('20' => 'Taurus '), array ('21' => 'gemin'), array ('22' => 'rogen '), array ('23' => 'Leo '), array ('23' => 'virgo'),

Obtain the start date of the week based on the given date format 'yyyy-mm-DD'-PHP source code

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

[Upgrade] phpsocket sends emails via smtp (plain text, HTML, multiple recipients, multiple CC, and multiple BCC)-PHP source code

[Upgrade] phpsocket sends emails via smtp (plain text, HTML, multi-recipient, multi-CC, and multi-BCC) Jump SetServer ("XXXXX", "XXXXX @ XXXXX", "XXXXX"); set smtp server * $ mail-> setFrom ("XXXXX "); set the sender * $ mail-> setReceiver ("XXXXX"

Character query test function regular expression verification-PHP source code

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 =

Take a picture of the specified size in the middle part-PHP source code

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

Fsocket-PHP source code

Fsocket 1. _ SetCookie (substr ($ line, 12);} $ reHeader. = $ line; if (substr ($ line, 0, 16) = 'content-Length: ') {$ maxlen = intval (substr ($ line, 16, -2);} if ($ line = "\ r \ n" | $ line = "") break;} return $ maxlen ;} /** get the body

PHPSMTP email sending class, supporting multiple attachments and SSL connections-PHP source code

PHPSMTP mail sending class, supports multiple attachments, and supports SSL connection to php code: SetServer ("XXXXX", "XXXXX @ XXXXX", "XXXXX"); // Set the smtp server * $ mail-> setServer ("XXXXX", "XXXXX @ XXXXX ", "XXXXX", 465, true); // Set

Hecart high-performance electronic shopping cart-upgraded version-PHP source code

Hecart high-performance electronic shopping cart-upgraded version Hoojar studio ** module: wcore/speed. php * Summary: generate static files or buffer MEMCACHED * author: woods · zhang-> hoojar@163.com * version: $ Id: speed. php 1 2012-11-20 05: 55:

Phpaccess data import mysql-PHP source code

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 (!

PHP-encapsulated multi-file Upload instance and usage-PHP source code

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

5 Latest jQuery Image cropping plug-in-PHP source code

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.

Complete message board code, add comments, easy to understand-PHP source code

Relatively complete message board code, add comments, easy to understand 1.index.htm µÇ¼ϵͳÊ×Ò³ 2. conn. php 3. member_index.php Display main interface Cancel Modify personal

Jquery deletes the specified html tag and retains the text content in the tag-PHP source code

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 file size helper class-PHP source code

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 =

Total Pages: 12780 1 .... 8038 8039 8040 8041 8042 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.