Use of laravel5 middleware (1) use of laravel5 middleware (1)
1. create middleware
Php artisan make: middleware _ Name_Middleware
2. Register middleware
2.1 middleware registered in Kennel. php
2.2 By default, it is stored here and will be
Ajax asynchronous request function error, many browsers fail, prompting isnotafunction rt. I am working on php web page
Only the IE browser is successful. my left sidebar is an option, and the right sidebar is displayed based on the asynchronous
PHP namespace Category name use framework automatic loading mechanism from php 5.3, PHP has many main features such as namespace/latency static binding/lambda anonymous functions
Namespace references further improve the flexibility and
PHP variables, data types, and scopes. Directory [1] variable definition variable assignment [2] data type string integer floating point number Boolean array object NULL resource [3] scope globalstatic
Variable definition
A variable is the container
PHP Study Notes 7: handling errors and exceptions read the notes in PHP and MySQL Web Development:
1. exception handling concept
1) exception handling is called and executed in the try code block
Try
{
// Code goes here
}
2) in PHP, an
File_get_contents (php: input) usage $ data = file_get_contents ("php: // input ");
Php: // input is a read-only stream that can access the requested raw data.
In the case of POST requests, it is best to use php: // input instead of $ HTTP_RAW_POST_
Ask the data returned by json for an inexplicable explanation. what is the preceding table? send a json file
Request File
Category. php
Corresponding tables in the database
Json result
The data results contain a number of
Php programming app interface (2)-PHP generates XML data and adds the method xml () to the Reponse. php file ();
Public static function xml () {header ('content-type: text/XML'); $ xml ="
\ N "; $ xml. ="
\ N "; $ xml. ="
200\ N "; $ xml. ="
How does php call the wcf service? the call parameter is an object parameter. The. net-based wcf interface can be accessed by deploying IIS.
I use php soap to call and test whether it can be passed. it is also possible:
Header ('content-Type:
Design scheme for Deploying PHP applications using Docker 1. Docker
The official definition of Docker is:
Docker allows you to package an application with all of its dependencies into a standardized unit for software development.
Php pattern design: the registration tree pattern has finally ushered in the last Basic design pattern-registration tree pattern after the first two Singleton patterns and factory patterns.
What is the registration tree model?
The registration
Is there a way to change the include in the function to global incdue? because after the function is included in the file, all the variables in the file are changed to local variables in the function, although the global declaration can be made in
Mysql uses the. SQL file to import data to the renamed SQL statement if the TABLE exists. if the TABLE table1 is imported, the TABLE table1 first needs to be modified.
How can I write this SQL statement? Thank you.
Reply to discussion
Mysql can query and cannot add or modify the environment win2003 iis6.0 php5.2
The mysql account has the write and modification permission, but cannot write and modify on the php page. it can only be queried.
Please kindly advise
Reply to
Q: Is this the most popular php forum? There are too many questions for new users. I don't know if this is the most popular php Forum?
Reply to discussion (solution)
What do you think is fire?
Generally, they are used to kill Big experts
How to display the original gender in the database in the "modify gender" drop-down box
Gender: Male Female
Reply to discussion (solution)
Is the sex field of gender
There is a syntax error on the page, but the page cannot be loaded directly. for example, my code is to write $ array = array () into $ array = ()
If it is modified to the correct one, the page can be opened normally.
I added error_reporting
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