The list of Web application skeletons automatically generated by the YII framework contains a footstep file, Yiic and Yiic.bat. YIIC is used by the Unix/linux platform, and Yiic.bat is used by Windows platforms. If you want to view the script's help
Basic functions of array manipulationThe key name and value of the array
Is_array ($arr); Determines whether the array is count ($arr); The number of tuples in the statistic array array_count_values ($arr); The number of occurrences of an element
Introduction to my Nginx usage
First on configuration:
work_processes4; events{work_connections1024x768;} http{includeMime.types;Default_typeApplication/octet-stream;Sendfile on;Keepalive_timeout $; server{Listen the;server_namelocalhost
Nginx can be installed using the default packages of each platform, this article is to introduce the use of source code compilation installation, including specific compilation parameters information.Before the official start, the compilation
The recent server PHP version has been upgraded to 5.6 and found a lot of warnings .
Preg_replace (): the/e modifier is deprecated, use preg_replace_callback instead
At first did not pay attention, and later found a lot of such warnings, so the
Once the simple study of PHP, read "PHP and MySQL Web development", as well as the help of a universal search engine. This preparation system to learn a bit, reference is PHP Manual.
What PHP can do
PHP is primarily used for server-side scripting,
The following is a whipped Egg game web version of the background source, all the source code is released. When there are a large number of class files to include, we just need to determine the corresponding rules, and then in the __autoload ()
First, use Phpinfo () to view the PHP version
My computer shows the result: PHP 5.6 32-bit.
Second, download the corresponding version of the Php-redis module,
Put the downloaded Php_redis.dll, php_igbinary.dll into the Xampp/php/ext,
Modify the
Web Development N Example
Case 3: using the Post and get methods to pass parameters between PHP and HTML
case3.php:
Case 3
Click the hyperlink pass parameter
case3-output.php:
"Else echo" did not
Before doing a similar application, today turned out to look at, feel that the writing is not very reasonable, and then re-considered after writing a query stored procedures.
Table is not described,
The process is as follows:
----------------------
Go back to the root directory CD pcre //Enter the Pcre directory. Configure // Compile is complete, it will be in C:\MSYS\1.0\pcre\.libs\ Generate the required files under: Libpcre-0.dll//pcre dynamic link library
Three groups of easily confusing functions in PHP
I, Htmlentities () and Htmlspecialchars ()
1, Htmlentities ()
1.1 function: Convert characters to HTML entities. characters include ASCII entities and ISO 8859-1 entities (HTML entity table:
I started with Apt-get install Nginx installed, so the following is installed in the case of the upgrade
Download the stable version of Nginx:
http://nginx.org/en/download.html here I downloaded the 1.6.2 stable version
Go to the directory where
HTTP Referer is part of the header, and when the browser sends a request to the Web server, it usually takes referer to tell the server which page link I took from, and the server can get some information for processing. For example, if you link to
Workaround:
1. Locate the Cmd.exe file (C:\windows\system32\cmd.exe)
2. Right-click Cmd.exe to run as Administrator
3. Place the Php_memcache.dll in the PHP ext directory:
4. Add a line on php.ini: Extension=php_memcache.dll
5.cmd Enter the
From the later version of PHP5, the class will be able to use the Magic method. PHP rules to start with two underscore (__) methods are preserved as a magic method, it is recommended that the function name is best not to start without __, unless it
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