Recently, I got a small job and made a dynamic website using the PHP language and MySql database. Previous websites were developed in windows, and the development environment uses AppServ's PHP development kit. Now I have my Big MAC, so I found the
This article mainly introduces the PHP array grouping and sorting example. For more information about the PHP array grouping and sorting method, see The PHP array. the array content is roughly as follows:
The code is as follows:
$ List = array
When using php to intercept Chinese strings, two functions, iconv_substr and mb_substr, are frequently used. how should I select these two functions? Refer to the example described in this article to understand. Sample code. the substr and
NuSoap is a WebService programming tool in the PHP environment. it is used to create or call WebService. It is an open-source software and a series of PHP classes that use PHP language to send and receive SOAP messages over HTTP. One advantage of
This article mainly introduces a simple method to use PHP to crack anti-Leech images, but the small series is not tested and looks a bit unreliable. if you need a friend, you can refer to it and have your own host to design "anti-leech ", in fact,
This article mainly introduces how to prohibit webpages from being referenced by iframe in PHP, Nginx, and Apache by using X-Frame-Options, for more information, see add the X-Frame-Options header in php or nginx to control the frame
This article mainly introduces how to capture Fatalerror in PHP. you can use register_shutdown_function to capture Fatalerror. For more information, see Fatal error, however, in a complex program, fatal error is hard to handle if the memory is
This article mainly introduces a strict PHPSession session timeout setting method. the focus is to combine the two methods to ensure that the timeout time is reached and the session fails, you can refer to a PHP project that recently used the
This article describes how to run Linux commands in PHP and start the SSH service. because the SSH service of VPS fails, the server cannot be accessed, if you want to upgrade your VPS, the sshd service will not be automatically started due to
Dispatch is a PHP small framework that can combine Dispatch and other frameworks to develop a very powerful and lightweight program. if you need it, you can refer to Dispatch as a small PHP framework. It does not give you complete MVC settings, but
There are a lot of posts on the internet about ci and swfupload. However, they are not very complete. Therefore, I have summarized the advantages of these posts and sorted them out based on my actual experience, for more information, see codeigniter.
Generally, file caching can meet the requirements. thinkPHP also provides a fast cache method F for file caching, if you need it, you can refer to the file caching method to meet the requirements. thinkPHP also provides a fast cache method F
The idea is to use DOMDocument to convert an htmlfile to the data structure of the DOM tree, and then use the DOMXPath instance to search for this DOM tree, next, we can traverse the child tree of the current node. The origin of the event is
This article mainly introduces the where method of the ThinkPHPCURD method. if you need it, you can refer to the where method, which is the most common but complex method. The where method is also one of the coherent operation methods of the model
This article mainly introduces php's simple method of getting images and DIV content from webpages, which is implemented through regular expressions and powerful regular expressions, for more information, see 1. obtain all the images on the webpage:
The G Method of ThinkPHP3.1 can be used to mark the position and interval statistics. This article mainly introduces the use of the ThinkPHP3.1 version G method. For more information, see if ThinkPHP needs to use the debug_start, debug_end method,
The L method of thinkPHP is used to set and obtain the current language definition when multiple languages are enabled. This article mainly introduces the use of ThinkPHP L methods. For more information, see the thinkPHP L method to set and obtain
This article mainly introduces ThinkPHP3.1's support for Ajax. For more information about AJAX support, see ThinkPHP3.1:
1. AJAX method improvement judgment
Now, you can directly use the constant IS_AJAX to determine whether AJAX requests are used
In windows, configuring apache + php + mysql should be the basic skills that every phper must possess. this is also a process that is familiar with php, when I configured my own environment, Xiao Bian also encountered such a problem. now I want to
CURL is a file transfer tool that uses URL syntax like command line. It supports many protocols. It supports authentication. Php commonly implements more complex transmission functions. Implemented functions:
1. remote acquisition and collection of
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