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
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
Developed under Windows system
Environment configuration:
Phpstudy----Download Now
Development tools:
Phpstorm----Download Now
Reference a registered server address: Pantian--phpstorm 2016.1 Registration code
Of course, we recommend the use
PHP7 is Vc14 compiled, if you want to run the VC2015 library must be installed first
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Start PHP support in Apache first (Apache needs to download 2.4VC11 version)
Httpd.conf End of
"The most popular programming language on the web is likely to be available for mobile," said John Koetsier, a venturebeat contributor to the U.S. technology blog. The article points out that 75% of sites are using PHP, such as Facebook, Wikipedia,
Preparatory work
To install the Sphinx extension in PHP, you must first install the Sphinx, the author uses Chinese participle, so I installed the Coreseek.
How to install Coreseek see:
yii2.0 Default Access form is: dxr.com/index.php?r=index/list, generally we will be configured to PathInfo form to access: dxr.com/index/list, so more in line with user habits.
The specific configuration method is:
One. Configure yii2.0.
Open the
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
From 2014-10-21 onwards, the PSR-0 standard was marked as obsolete. It is recommended to use the PSR-4 standard as replacement.
The loader (autoloader) must comply with the requirements below.
Requirements:
A complete namespace or class
First of all, a little novice know the common misunderstanding: close the browser session expires. This kind of talk is completely wrong,
Whether or not the session expires is not necessarily related to how the client operates, he only has to do
Lua sometimes has to ask for outside links, tried several ways to find the best performance in this way
location /set { default_type'text/html'; proxy_set_header Host test.yufei.com; proxy_connect_timeout 5s;
Usually use $_post['],$_get['] to get the parameters in the form will appear notice
: Undefined index:--------;
Although it is possible to hide this hint by setting the error display, there is a hidden danger that these prompts are logged in
2015.10 Junior Top-to-Web computing course
In the junior course, Mr. Haitao asked the project to use rest for data collection. My eyes are crazy, what is rest? Then went to the Internet to find study materials. Then start writing a rest API
Special Process Control Statements
Special Process Control statements are required if you want to plant loops during loop body execution, or to skip some loops to continue with other loops.
1. Break statement
Break can end the execution of
Process:1). Create an image resource, which will be based on this image resource in future operations.$im =imagecreate (200,200)2). Within the image resource, define a color (the 1th call, which is automatically populated as a background
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