1. String output function
Echo
Print
No echo high efficiency, not recommended
Die ()
Exit and print the string A, you can also die directly
Printf
formatting strings
sprintf
Returns a formatted string
2. Commonly used string formatting
Log file format
Log file Cutting
Manual Cutting
Automatic cutting
Log file format
Open nginx default configuration file nginx.conf
We use the LOG_FORMAT directive to specify the format of the log file, starting with the
First, regular expression tutorial
Pseudo static rule notation rewriterule-htaccess detailed syntax use tutorial share
Simply put: pseudo-static is actually using PHP to parse the current address into another way to visit the site! To learn the
1. FILE
The app.php output is as follows
echo__FILE__;
The result is: D:\www\laravel5.1\bootstrap\app.php
2. DIRSuppose the code in 1 is in the bootstrap directory
echo__DIR__// 等同于 dirname(__FILE__)
The result is: D:\www\laravel5.1\bootstrap
1. Open the/etc/nginx/sites-available/default file using the command line
sudo vi/etc/nginx/sites-available/default
2. Copy the server code, modify the Listen port, file path, and server_name
server {Listen 8011; #配置端口号Listen [::]:80
What is VC6?
VC6 is Legacy Visual Studio 6 compiler, which is compiled with this compiler.
What is VC9?
VC9 is the Visual Studio compiler, which is compiled with Microsoft's vs Editor.
So how do we choose which version of PHP to download?
If you are
1 PHP Configuration:
First, we need to download the installation php5cd/usr/local/src/
wget Http://cn2.php.net/get/php-5.5.33.tar.bz2/from/this/mirror
Official website http://php.net/downloads.php
Be sure to install gd,png,curl,xml and so on
Objective
System Environment: WINDOW8
Operating Environment: XAMPP
Editor: Sublime Text 2
As a result of self-taught Android development, back to find internships, is now scheduled to do PHP development.
Install the development environment
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
Recently looking at the factory model and the abstract factory model, the depth of the PHP book to see this piece two times, but still vaguely, so to ask the degree Niang, I think there is a it so that is very reasonable:
Factory methodThe factory
These days, a requirement is written in a PHP file, which is best performed on the command line.
But there is a problem.
When I execute PHP files in the browser, OK, everything is fine.
But
When I execute in the command line, error!
The error
The first step:
Install the libraries you need to use
Yum-y Install libjpeglibjpeg-devel libpng libpng-devel freetype freetype-devel
Step Two:
into the PHP source directory of the EXT/GD directory (here is the source directory, not the
These days in learning js-sdk, I want to achieve in sharing my mobile Web page, can customize the share icon, introduction and other functions. Beginners can only go through the tutorial more.
Incidentally learn the Nginx bound domain name, 1.1
Before saying that each time you create a new object, the __construct method is executed first, then when inheriting, do you first execute the _construct method of the parent class and then execute the subclass __construct method?
Let's do an
Note: This series of posts uses the symfony2.7.* framework.
Doctrine
Doctrine2 as a database persistence framework for PHP, it is very popular in foreign countries, in the current PHP field, doctrine is one of the best persistence framework, the
nginx+php fastcgi occurs Access Denied
2014-06-10 18:10 4901 People read reviews (0) favorites report
Cause Analysis:
PHP official starting from 5.3.9, added a configuration "security.limit_extensions" (/usr/local/php/etc/php-fpm.conf), by
Build PHP environment with IIS under Win 7
In the Win7 under the PHP environment to build, because oneself recently also self-taught PHP, in the building PHP environment encountered a lot of problems, also on the internet to find a lot of
This paper summarizes and analyzes the method of PHP accessing database cluster. Share to everyone for your reference, as follows:
There are three common ways to do this:
1, automatically determine whether SQL is read, to select the database
Reprint: http://pengranxiang.iteye.com/blog/1450558
Nginx + tomcat cluster deployment, back-end Tomcat needs to obtain the user's IP, at this time through
Java code
REQUEST.GETREMOTEADDR ()
Always get the intranet address of
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