1, prevent from jumping out of the web directory
First modify httpd.conf, if you only allow your PHP script program to operate in the Web directory, you can also modify the httpd.conf file to restrict the PHP operation path. For example, your web
Manipulating files
1. Use more than 5 ways to get the extension of a file
Requirements: dir/upload.image.jpg, find. jpg or jpg
";
Echo two ($STR);
echo "";
Echo three ($STR);
echo "";
Echo Four ($STR);
echo "";
Through the article gives the source code can achieve for the picture and so on shrink released into a thumbnail function, very practical skills oh.
New file index.php, you need to have a picture under the statistics directory for pic.jpg (can
This article demonstrates 5 kinds of authentication codes with an example, and introduces the function of generating the verification code. PHP generated Verification code principle: Through the GD library, generate a picture with the verification
The example in this article describes the class that PHP implements database interaction based on session. Share to everyone for your reference. as follows:
query ("Update". Self:: $table. "Set value= ' $session _data ', expiry= ' $session
This article describes the implementation of PHP to crawl the VIP account of the Thunderbolt method. Share to everyone for your reference. as follows:
Read the @jinn_wei python version of the crawl account, so conveniently wrote a PHP versionPS1:
The example in this article describes the way in which PHP implements copying moving files. Share to everyone for your reference. Specifically as follows:
Elfinder, a simple example of extracting key member methods
Implementation features are:
This article describes the way PHP gets the date of the website Baidu snapshot. Share to everyone for your reference. as follows:
Online demo _php get snapshot time for a Web site query site snapshot date: input URL: http://" >
To implement a crawler the text from the creation of the crawler database, robot.php record the visiting crawler to insert information into the database crawler, and then from the database can obtain all the crawler information. The implementation
This article describes the PHP implementation of QQ space to get the user name of the current user and generate a picture of the method. Share to everyone for your reference. Specifically as follows:
Recently found that the space is often
This example describes how PHP gets the error message. Share to everyone for your reference. as follows:
function Error_reg () {
$ar =array (
e_error => ' error ', e_warning => ' WARNING '
, E_parse => ')
Prase ',
e_notice => ' NOTICE '
First get the path to the current directory, and then determine whether the folder exists, does not exist to create.
//did not detect whether the build succeeded
echo "tmp directory is". $tmp _file_path
;
>
? Download Resources (APACHE24,PHP7,PHPSTORM9)? Modifying the Apache24 configuration file? Install and launch Apache service? Modify php7.0.11 configuration file Pre-Configuration Description: The computer needs to have a VC runtime environment,
Php hook program design and hook Program DesignAs a programmer, designing an elegant and perfect system always makes us very excited. A master is not about how many languages you speak, but about how high your thoughts are. In the design, how to
[Development] public platform access and binding prompt "request URL timeout" solution, public urlBecome a developer's first step-public platform accessStep 1: Fill in the server configuration
Enable server configuration in development> basic
Php uses the preg_match () function to verify the IP address.
This example describes how php uses the preg_match () function to verify IP addresses. We will share this with you for your reference. The details are as follows:
PS: here we will
Examples of pagination and SqlHelper usage in php, and pagination sqlhelper
This example describes the paging and SqlHelper class usage in php. We will share this with you for your reference. The details are as follows:
The document directory
Example of php code for sending mass messages to a public account template, and php code for sending mass messages
Template messages can only be sent to one person. If you want to send messages in a group, you need to use php loop to send messages
Implement functionsObtain and compare the half time with the time specified by the user, and then determine that the operation is performed within a few days.Program code The code is as follows:Copy code $ D = '2017-01-09 ';$ Time = time ();$
$ Str = "Yunqi Community Network ";If (preg_match ("/^ [". chr (0xa1). "-". chr (0xff). "] + $/", $ str )){Echo "this is a pure Chinese string ";} Else {Echo "this is not a pure Chinese string ";}JsVar str = "php programming ";If (/^ [u4e00-u9fa5] +
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