When using Yii2, if a beautified URL is enabled, access to http://www.aaa.com does not directly display the http://www.aaa.com/site/index.html content. You need to configure rules at this time
Of course, if you use the default controller, the
1, Global installation acceleration
In the global profile Config.json (typically under the. Composer directory in the home directory), add:
{" config": [], "repositories": [ { "packagist": false }, {
PHP is not like aspx with jsp,aspx and JSP development environment card is stuck, but they have a Visual Studio and Eclipse console can see the change of variables at any time, PHP if using Notepad, Notepad or Dreamweaver and other things developed ,
Justap is a simple, easy-to-use PHP runtime Environment for PHP developers to use. Unlike Wamp, XAMPP, and so on, it contains only Apache httpd and PHP, which is the reason for its name (Justap=just Apache and PHP).
Why develop Justap?1, PHP
public void _set (string $name, mixed $value)
Public mixed _get (string $name)
public bool _isset (string $name)
public void _unset (string $name)
Public mixed _call (string $name, array $arguments)
The functions of these methods are as
The Boolean FALSE itself
The integer 0 (zero)
The float 0.0 (zero)
The empty string, and the string "0"
An array with zero elements
An object with zero member variables (PHP 4 only)
The special type NULL (including unset variables)
PHP Scrolling Log Class Library
PHP logging, I have been contacted before the date of the folder, and then according to the log records of the day, this way, there are pros and cons, there is his use of the scene, I would like to say today is
1. In/basic/config/console.php and/basic/config/web.php, configure the component, where only the code in the console.php is posted:
' Basic-console ', ' BasePath ' and DirName (__dir__), ' bootstrap ' = [' log ', ' gii '], ' controllernamespace
We first completed the background PHP process, the main work of PHP is responsible for the allocation of prizes and the corresponding probability of winning, the current page click to flip a block will want to background PHP to send AJAX requests,
When I was studying a PHP project, today's project suddenly couldn't open.
A few days ago also good, with Chrome to see the next response content, Ajax pages and ordinary HTML page content in front of a red dot.
Mouse move up, prompt
Objective
iis7.5 is installed in the Win7, win8 in the Web server, Win2003, Win2000 Web server using iis6.0, because Win7, win8 system compared to Win2003, Win2000 with the change of the new leather surface of the difference, Therefore, the
Handling Events
which conforms to ngx_event_module there are two modules are ngx_event_core_module, Ngx_epoll_module
Core code
Ngx_modules[i]->ctx_index = ngx_event_max_module++;//Set Module Internal Index} CTX = Ngx_pcalloc (Cf->pool,
阅读源码的最好方式就是跟踪调试代码,这里介绍了如何利用GDB调试nginx的配置和步骤。
Modifying a configuration file
修改nginx.conf:
#user nobody;offoff;
Daemon off; indicates that the daemon mode is turned off, so that the sub-processes that are traced to the fork are removed from GDB.
A Brief introduction
Web program working schematic diagram:
The traditional Web program working principle diagram:
Ajax working principle diagram:
1. About Ajax
L Asynchronous asynchronous
L JavaScript
L and
L XML
Ajax is a technology that
Add source file
First, add two files under the Src/core/directory, namely My_debug.h and MY_DEBUG.C.
#ifndef My_debug_lenky_h#define MY_DEBUG_LENKY_H#include
voidEnable_my_debug (void) __attribute__
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