PHP to get a short link after the real address and the response header information, jump to the true
Get to a short connection, need to convert the short connection to a real URL, through the search data, found that PHP provides a function
Stupid Bird Learn PHP (vi) array
First, an array overview
1.1 Arrays are composite types
1.2 You can store any length of data in an array, or you can store any type of data
Ii. Types of arrays
2.1 Indexed array: Subscript is an ordinal integer as
Phpdocumentor Annotation Specification Collation
Can you write a note? From the time I wrote the code, this problem has been bothering me, and I believe it is also bothering other students. Previous write annotations always had no set of proven
Introduction to Turing man PHP API
Turing platform, based on natural language processing, knowledge base and cloud computing technology, for the vast number of developers, partners to provide a range of intelligent semantic processing capabilities
Shenzhen website Construction system: According to the website language display different customer service information, Shenzhen website construction
The original program by default is a dynamic language program, although you can generate static
8 ways to read files in PHP and code examples,
Compiled a few ways to read files in PHP, convenient for later review.
1.fread
string fread (int $handle, int $length)
Fread () reads up to length bytes from a file pointed to by handle. The function
How PHP automatically jumps to the English and Chinese pages
How PHP automatically jumps to the English and Chinese pages:
The code is as follows:
$lan = substr (? $HTTP _accept_language,0,5);if ($lan = = "ZH-CN")Print ("
");
PHP Unset,array_splice Removes the difference between elements in an array, Unsetarray_splice
If you want to delete an element in an array, you can use the unset directly, but the index of the array does not reflow:
The result is:
Array ([0] = a [
PHP's mkdir () function creates a more secure permission setting method for the folder,
Problem Description:Use the following PHP code to create a directory, the permissions of the expected directory is 0777, the actual result is 0755Copy the Code
PHP first lesson easy to understand PHP
Target planning:With the first lesson, we can learn about the PHP environment.
1. Understanding of the environment:2. Access method:3. Modify the code and view it.4. Use of variables5. Code indentation to
The difference between error and exception in PHP and its application, errorexception
The difference between error and exception check the online data is mostly Java interpretation, it seems that PHP exception processing process and Java almost
The
How to set up a PHP server
How to set up a PHP server
"One" first download the software:
(Apache) I'm using the apache_2.24-win32-x86-no_src!! downloaded in Hurricane Software Park.
Download Address:
PHP gets web file and path
PHP Gets the Web page file followed by the path:
echo $_server[' Document_root ']. ""; Get Server Document root variable
echo $_server[' php_self ']. ""; Gets the variable that executes the file server absolute path
PHP Package Good digital Paging method class
/**
* Get page number navigation html
* @param $pageNum: Current page
* @param $pageSize: Quantity per page
* @param $rowCount: Total Records
* @param $navUrl: Link page url
*/
function getnavhtml
A simple counter written in PHP, PHP to write a simple counter
PHP has an extremely powerful image processing capability, which makes it easy to dynamically generate web images.is a simple counter made using PHP.1. General ideas:Record the number
Php+mysql Unlimited class instances without recursive implementations (non-recursive), MySQL recursion
Recursion is generally the first and easiest to implement for infinite classification, but recursion is generally considered a resource-intensive
Examples of use of assets in Yii, yiiassets example
First, the role of YII assets:
1.yii in the role of assets is convenient for modular, plug-in, generally for security reasons do not allow the URL to access protected the following file , but we
Yii module implements the method of binding level two domain name, yii level two domain name
Yii module implementation of binding level two domain name is mainly the following steps:
First in the configuration file settings:
' Urlmanager ' = =
Yii Operation Cookie Example Introduction, yiicookie instance
There are several common ways in which Yii operates on cookies:
1. Set Cookies:
$cookie = new Chttpcookie (' MyCookie ', ' This is my Cookie '); $cookie->expire = time () +60*60*24*30;
thinkphp List_to_tree for unlimited class listing all nodes
The List_to_tree is easy to use and can be viewed in detail in the manual. Because I need to list all the nodes at the same time, so I wrote a recursive function, for everyone to refer to.
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