PHP
/** * @name The Delfile function is used with the Deldir function to delete the entire directory that matches the condition * @param string $path Specify the action path * @return Null * @example deldir ('
Recently read a lot about PHP WebService information, thanks to Yan 18 sharing, helped me to build the process of the server. Take your study notes as follows, which contains notes from Yan 18.
WebService
1 Quick Learn WebService
Popular say: In a
0. The goal is to integrate the dapper Nginx and Django through Uwsgi
1. Pre-Environment Python 2.7.8 @ Ubuntu Server 14.04.2 version
2. Install Django (PIP is used here, of course easy_install is also possible)sudo pip install django==1.8
3.
Issue background: Download a PHP project from the Web A,a project needs to be deployed in the root directory of the Web site.
Configuring a virtual host can solve this problem.
1. Open Apache configuration file
Snoopy is a PHP class that simulates the function of a browser and can retrieve the contents of a Web page and send a form. Snoopy the PHP version that requires your server to run correctly is above 4 and supports PCRE ( Perl Compatible Regular
upload.php
-->
File size cannot exceed 2M ";}}? >
uploadprocess.php
2*1024*1024) {echo "file is too large to upload more than 2M files"Echo" return to re-upload "; exit ();} $file _type = $_files[' myfile ' [' Type '];if ($file _type!
Nginx appears 413 Request Entity Too Large Problem Solving method
Uploading a picture using PHP (Size 1.9M), nginx:413 Request Entity Too Large error occurred.
The experience is that the server limits the size of the uploaded file, but the PHP
b/S system is more important than C/S, c/s system because of a special client, so access to the user's permission detection can be achieved through the client or through the client + server detection, and b/s, the browser is every computer has a, If
When using WordPress, if you want to directly use the package of WP in the database operation of the Class (wp-db.php), the wp-blog-header.php included in the code can be used.
Define (' PATH ', DirName (dirname (__file__)). ' /');
Windows development under the WAMP integrated environment, want to install a php-redis extension, extended GitHub address: Https://github.com/nicolasff/phpredis
Php_redis.dll Download Address:
the TCP/IP , UDP , Socket you're not a stranger to programming these words, are you? With the development of network technology, these words are filled with our ears. Then I would like to ask:1. What is TCP/IP,UDP?2. Where is the Socket ?3. What is
1, default installation Nginx
sudo apt-get install Nginx
If you can't find it, sudo apt-get update
2, enter the Nginx configuration directory
Cd/etc/nginx
3, create your own project Nginx configuration file
CD Nginx.dtouch aaa.conf
4. Configure the
1 Introduction
Use the most concise web development environment---WAMP integrated installation environment, i.e. windows+apache+mysql+php four software integration. This eliminates the task of installing software and configuring it individually,
Verification of e-mail addresses
Php/*Verify Email address*/function Checkmail ($email) {//user name, by "\w" format character, "-" or "." Composition$email _name="\w| (\w[-.\w]*\w)";//The first paragraph in the domain name, similar to the rule
Unregister variables
1, unset ($_session[' xxx ']) Delete a single session variable, unset ($_session[' xxx ") is used to unregister a registered session variable. Its effect is the same as Session_unregister (). Session_unregister () is no
Public function probability () {global $_input; $ret = Array (); $time = $_input[' Date '] && preg_match ('/^\d {4}-\d{2}\-\d{2}$/', $_input[' date ')? Strtotime ($_input[' date '): Strtotime (' Today '); $today = $time; The day time
PHP Session Tracking
What is session control
We need a powerful solution that allows the Web site to track the interaction between the client and the server, saving and remembering each user's identity and information, thus creating session control.
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