Basic web knowledge, web1. HTTP protocol features1) Client-> server (request) has three partsA) Request LineB) Request HeaderC) The request content, if not, is a blank character2) The server-> the client (response) has three partsA) Response lineB)
Request. servervariables ("url ")Back to server address
Request. servervariables ("path_info ")Path information provided by the client
Request. servervariables ("appl_physical_path ")And ApplicationsProgramPhysical path of the metabase path
Server Load balancer II-Basic knowledge of Server Load balancer
In the previous article, we have been talking about the knowledge around Server Load balancer. Don't worry about it, and you can't eat hot tofu. A little bit every day!
Using request. Params ["ID"] to obtain parameters is a more effective way.
There are three ways to pass parameters: (1). Form (2 ).? Id = (3). Cookie
Request. Params is actually a set of requests. querystring, request. Form, request. Cookies,
Currently, I know two methods: one is to use the APC extension module written by Rasmus lerdorf, founder of PHP to implement (http://pecl.php.net/package/apc ), another way is to use the PECL extension module uploadprogress implementation
The usage is very simple. You only need to include a file...
/*** Auto_cache.php implements intelligent automatic cache. * Extremely easy to use: * require 'Auto _ cache. PHP '; it's OK * @ author rains31@gmail.com * // This file does not allow
Request. servervariables ("path_translated ")
Path obtained after ing from virtual to physical
Request. servervariables ("script_name ")Script Execution name
Request. servervariables ("QUERY_STRING ")Query string content
Request.
Technorati labels: Asp.net, PHP, ASP, JSP, 301 redirection
IntroductionProgramThe system implements 301 redirectionCode:1. Linux host redirectionGodaddy's liunx host, Godaddy itself supports Apache, so you can directly create. the htaccess file is
Currently, I know two methods: one is to use the APC extension module written by Rasmus lerdorf, founder of PHP to implement (http://pecl.php.net/package/apc ), another way is to use the PECL extension module uploadprogress implementation
An article in the IBM document AreaArticleRest Description: http://www.ibm.com/developerworks/cn/web/wa-ajaxarch/
What is rest? Find a simple and easy to understand: Building Web services the rest way.
Based on this article, I sorted out my own
A potentially dangerous request. form value was detected from the client (ctl00 $ maincontent $ txtcode = " ").
Description: Request validation has detected a potentially dangerous client input value, and processing of the request has been
Request. servervariables ["url"]Back to server address
Request. servervariables ["path_info"]Path information provided by the client
Request. servervariables ["appl_physical_path"]And ApplicationsProgramPhysical path of the metabase path
Request. servervariables ("url ")
Back to server address
Request. servervariables ("path_info ")Path information provided by the client
Request. servervariables ("appl_physical_path ")Physical path corresponding to the application metadatabase path
In PHP website development, you often need to set and apply the PHP environment variables to meet the needs of the website. In the virtual host environment, sometimes we need to use the PHP environment variable operation letter.To set the PHP
The layer mode is the most common architecture mode. Even the layered mode is the basis of many architectural models. Some of the content mentioned in this chapter is actually related to the layered mode.
The hierarchy describes the architectural
Request. servervariables parameter set request. servervariables parameter set
Necessary for Asp.net probe.
Request. servervariables ('url ')Back to server address
Request. servervariables ('path _ info ')Path information provided by the client
1. If a method c ++ an be static, declare it static. Speed improvement is by a factor of 4. If a method can be static, make a static Declaration on it. The speed can be increased to 4 times.
2. echo is faster than print. echo is faster than print.
3
PHP performance optimization (finishing ). PHP optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. let's take a look at php below. some parameters in ini that have a major impact on performance should be
15 Very useful PHP code snippets. The following are the fifteen most useful PHP code snippets. You may also want to share your code snippets with any code or comments if you think it may be useful to others. The following are the fifteen most useful
Smarty configuration and advanced cache technology. Preface Smarty is an excellent PHP template engine that separates logical code from userinterface. Learning and using Smarty without applying it to the cache technology is a huge loss.
Smarty is an
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.