Sina provides a long link to a short link to the API, you can convert the long link to t.cn/xxx this format short link.
API:Http://api.t.sina.com.cn/short_url/shorten.json (returns the result in JSON format)Http://api.t.sina.com.cn/short_url/shorten.
The thinkphp F method can only be used to cache simple data types and does not support expiration and cache objects. The S () cache method supports the validity period, also known as the dynamic caching method. This article is a small series of
This article describes the method of using PHP to determine whether a file exists, supports local and remote file judgments, and provides full invocation code and demos.
1. Determine if a local file exists
Determine if the local file exists and can
The content of PHP object-oriented serialization and deserialization is important in PHP, and this article explains its related code content.
Serialization (serialization): a process that transforms the state information of an object into a form
This article is mainly for you to introduce the thinkphp implementation of the verification code to generate and verify the function, with a certain reference value, interested in small partners can refer to
Use thinkphp to implement
This article mainly introduces the PHP reading configuration file class instance, the interested friend's reference, hoped to be helpful to everybody.
Specific as follows:
_settings; foreach ($var as $key) {if (! isset ($result [$key])) {return
This article mainly introduces the process usage of thinkphp processes Count class, analyzes the definition of process class in detail and the realization technique of progress count, which has certain reference value, the friend who need can refer
This article mainly introduces how PHP converts numbers into Chinese characters, and is interested in the reference of friends, hoping to help you.
In an interview encounter an interesting small algorithm problem: the need to convert Arabic
After PHP5, a series of predefined interfaces are added, collectively known as SPL, for these interfaces and implemented classes. These interfaces have a heavyweight interface arrayaccess, which is used to make your object accessible like an array.
This article mainly introduces the PHP operation with the Chinese content of Excel file and file export, interested in the reference of friends, I hope to be helpful to everyone.
This example describes the PHP export Chinese content Excel file
Due to work requirements, you need to get the start end date of the week starting in Thursday, and PHP does not provide a way to get the start and end dates for this week, so I wrote a way to make it easier to use later.
Calculation method:
format (
During the development process, such as modifying code developed by someone else or debugging a problem, you need to track the code process step-by-step and find the place where the problem is to be modified. If there is a way to get to a piece of
This article mainly introduced the thinkphp framework implementation of the infinite reply comment function, combined with the example form simple analysis of the thinkphp implementation of the infinite reply to the relevant controller, view
This article describes PHP generation unique
RequestIDclass, using
session_create_id ()And
uniqid ()method, ensure uniqueness, provide complete code and demonstration, convenient for everyone to learn to use.
Today's system design generally uses a
This article mainly for you to introduce the thinkphp public payment interface, interested in small partners can refer to
The example of this article for everyone to share the thinkphp public payment interface for your reference, the specific
PHP Arrays play an important role in PHP, which will be explained in detail in this article.
1) GLOBALS
2) _server
Server variables, different Web servers may have different content
3) G et gets the parameters passed by HttpGet mode such as URL or
This article mainly introduces PHP implementation of Dynamic Web server methods, interested in the friend's reference, I hope to be helpful to everyone.
If you are a Web server, you need to know about how the Web server works. Start with a static
This article mainly introduces the yii2.0 implementation of PathInfo form access configuration method of the relevant information, the need for friends can refer to the following
yii2.0 Default Access form is: dxr.com/index.php?r=index/list,
This article mainly introduces the PHP implementation for the HTML tags in the end of the detection and completion of the function of the friends, interested in the reference, I hope to be helpful to everyone. 、
This article describes the PHP
This article mainly introduces PHP to send post, GET request and operation Cookie based on curl, interested in the friend's reference, hope to help you.
Specific as follows:
ch_ = Curl_init ($url); curl_ Setopt ($this->ch_, Curlopt_header, 1) curl_
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