First of all, what does CGI do? CGI is designed to ensure that the data passed by the Web server is in a standard format and facilitates the writer of CGI programs.
Web server, such as Nginx, is simply the publisher of the content. For example, if
AllowOverride none Allowall
The Allow from all means that all the file paths do not require permissions and can be accessed, which is necessary when we develop the site, because all of our pages are a file corresponding to the disk path, and if
Problem
Recently, when implementing a project interface, it was found that when the array was too large, the data returned at a slower pace. The interface data returns the longest reaction time of 2s, which is repeatedly debugged to find the
From eclipse to vim, I didn't find a single-step breakpoint debugging function, very uncomfortable, and then searched, found the Xdebug+vdebug solution.
Installing Xdebug
Environment: CentOS 6.5Installation of
Machine: Mac
Server: Nginx
YAF version: 2.3.5
If you don't know how to join Yaf under Mac Nginx, there are also instructions on GitHub below.
The first step, get the code
Here are two places to get the code you look at:
(1),
How the controller module of the thinkphp framework is implemented
Front Controller、
Rear Controller, and how do I implement a method with parameters?
PHP system comes with the Reflectionclass, Reflectionmethod class, can reflect the user custom
In writing a form submission project, encountered the PHP interface output cannot display the Chinese interface.
Later access to relevant information, to obtain a solution.
The code is as follows:
123
PHP is fun! "; echo" Hello world!"Echo"
I'm using a personal subscription number for an application that I didn't certify.
Prepare the SAE, Lanewechat code (clone a copy on GitHub).
1. Create a PHP empty application in the SAE code management method for SVN.
Although I do not want to use
Madan, all things are going to get together ... After noon every day to learn cars ah, good fun. Good evening, but sleepy also have to chew book ...
Second, PHP script programming language
What variable ah, data type Ah, especially special basic
PHP Tutorials
PHP Overview
PHP Environment Setup
PHP writing format
PHP variables
PHP Constants
PHP comments
PHP Strings String
PHP integer Integer
PHP Float type float
PHP Boolean type
Array of PHP data types
Object of PHP data type
Download the corresponding version of the PHP source code and unzip, my version is php-5.4.16
Enter the source directory of the Ext/mysqlnd, and compile the mysqlnd.so
cp config9.m4 config.m"s{ext/mysqlnd/php_mysqlnd_config.h{config.h{"
Page jump using the redirect method to CodeIgniter, you need to introduce a URL helper function, the following example:
Public Function Test_redirect () { $this->load->helper (' url '); Redirect ("/test/test_redirect_output?name=10");}
System functions
Class_exists ()Determine if a class exists
Interface_exists ()Determine if an interface exists
Get_class ()Gets the class name where an object is located
Get_parent_class ()Gets the class name of the parent class
List several forgotten in the PHP language but very powerful string processing functions, here is not the use of an example, interested friends can test themselves.
(PHP 4 >= 4.0.4, PHP 5)
Function prototype bool Ctype_alnum (string
PHP class Library to the existing image plus text watermark, the code is not very perfect, welcome everyone to advise! The code is as follows:
img (picture path, watermark text, font path, font size, font angle); For example: $tpl->img (' Abc.jpg
SSL scheme:
1, Nginx to do the SSL handshake, and Tomcat still between the HTTP protocol (when Nginx and Tomcat in the same relatively secure intranet, this can reduce the number of SSL handshake). Nginx Proxy Forwarding (proxy_redirect: Reverse
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