Step One:
Open protected\config\main.php Open the segment comment ...
' Urlmanager ' =>array (
' urlformat ' => ' path ', //Use PathInfo mode, no need? r= ' Showscriptname ' =>false
, //Hide the index.php of the link in the code.
Purpose: I just want to get rid of the index.php?r= in the browser's address bar.
First Confirm Apache2 Configuration
1. Open the Apache mod_rewrite module
Remove the "#" symbol before the LoadModule rewrite_module modules/mod_rewrite.so;
2. Modify
Previous PHP Debugging tools, like Zendstudio or Phpclipse,storm, are running too slow, or this works.
1, first official website download vs code address: https://code.visualstudio.com/, download directly after installation can be.
2, installation
First step
I use 163 mailbox to send mail, make an attempt, before trying, need to open 163 mailbox authorization code as shown, please remember your authorization code, will be used in the next step
Second Step
Need to download a class Phpmailer, I
The first method: insert into inserts, with the following code:?
1 2 3 4 5 6 7
$params = Array (' value ' => ' 50′); Set_time_limit (0); echo Date ("H:i:s"); For ($i =0 $i insert ($params);}; echo Date ("H:i:s");
The final
PHP5.5 started, no longer support this thing, so 5.5 start later version, do not have to blindly sell this ... MD has been engaged for two hours: https://github.com/docker-library/php/issues/68
And no wonder this is the latest version of the
Beginners Lnmp,browser Request php file, PHP file is not resolved, but was downloaded.
The reason is that Nginx is not configured well.
PHP files need to explain the PHP interpreter, and through the Nginx and PHP interpreter Bridge is: fastcgi.
Recently there is nothing to write a PHP Web page program to send files, several failed to finally succeed, encountered a lot of pits, the online comparison of the simple, involved in many of the points are not mentioned, here to share their
a software that has many classes and calls to each other between classes and classes, and once a class has a tightly coupled relationship with another class, the reusability of the software is greatly reduced. So the reusability of a software
JS in PHP interactive Chinese characters appear garbled
There are two ways to solve this problem:
From JS start to escape (), Encodeurl (), encodeURIComponent () PHP can be directly received without processing
From PHP can be urlencode in the
The command is:
PHP--ri name extension.
For example:
PHP--ri memcached
The results are as follows:
PHP--ri memcached
Memcached
Memcached Support => Enabled
Version => 2.2.0
libmemcached version => 1.0.18
SASL Support => No
Session Support =>
Starting with PHP 4.2.0, PHP returns a corresponding error code along with the file information array. The code can be found in the Error field in the file array generated when the file is uploaded, i.e. $_files[' userfile ' [' Error
The first step, install a good apache2, and then unzip the PHP to the directory you want to put (the path must be English). The second step is the configuration file. Open the Apache configuration file httpd.conf. Add the following lines to the
introduction of Fastdfs
Fastdfs is an open source lightweight Distributed File system developed by HAPPY_FISH100, and she manages the files, including file storage, file synchronization, file access (file upload, file downloading), etc., which
Although Curl is powerful, but can only forge $_server["Http_x_forwarded_for"], for most IP address detection program, $_server["REMOTE_ADDR" is difficult to be forged:
The first is the client. Code View source print for PHP?
01
Apache vs. PHP configuration
Mavericks, like previous OS X, brought apache2.2.24 and php5.4.17, but by default it's not open.
sudo apachectl start
When you enter localhost in the browser, you should have the Apache standard it works!
Open PHP
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