learn PHP under Windows
Source installation is an essential skill for PHP programmers, but here's a quick introduction to a new shortcut to build a PHP development environment on a Windows machine: Phpstudy
Official website: http://www.phpstudy.net/
Although some judgments and limitations will be added before these procedures. But in addition to the library files, there are temporary files, template files and so on these files should not be directly accessed through the Web. Store inaccessible
This article by the code Farm-small peak original translation, reproduced please see the text at the end of the reprint requirements, welcome to participate in our paid contribution program!
The PHP framework is the most useful tool for Web
If you want to set the response of multiple Web sites, set the maximum execution time, 120 seconds to test more than 40 sites is sufficient. If your company has a lot of sites and want to quickly know if these sites are open, the following code can
Switch Mini-Test
$weekday = Date ("W"); Get today is the day of the week 123456 in 0 1 2 3 4 5 6 indicates
Switch ($weekday) {
Case 0:
echo "Sunday: Wounded day! ";
Break
Case 1:
echo "Monday: Busy day! ";
Break
Case 3:
echo "Wednesday:
Article Source:
Nginx only for logging.php for HTTPS processing rewrite rules
Under HTTPS server, add the following configuration:
if ($uri!~* "/logging.php$"){Rewrite ^/(. *) $/HTTP $host/$1 redirect;}
Under HTTP server, add the following
Project Structure:
Operation effect;
conn.php
Copy the Code code as follows:
Class connectionmysql{HostPrivate $host = "localhost";Username of the databasePrivate $name = "root";Password of the databasePrivate $pass = "";Database namePrivate
One feature that needs to be done today is to upload a local image to the server.
So using the PHP curl function, when I test the local, there is no problem. Uploaded to the line found a problem, reported a missing file error. (Online and offline
1. Render the template differently: in the Laravel frame, the return view (' URL path ') is used to render the template, while the thinkphp uses the->display () method to render the template;
2. In the actual development we often encounter this
Not long ago in the company's Project Melon Network (http://www.guaten.com/) backstage to make an extension, product attributes can upload pictures.
found that the background PHP gets the file is always empty value, it took a long time to
Niginx Download and install
1. Download
wget http://nginx.org/download/nginx-1.10.0.tar.gz
My software has been downloaded to/opt/soft-install.
2. Decompression
#解压到当前目录tar -zxvf nginx-1.10.0.tar.gz -C .
3. Compile and installThe first thing you
Author: White Wolf Source: http://www.manks.top/yii2_cache.html This article copyright belongs to the author, welcome reprint, but without the author consent must retain this paragraph statement, and in the article page obvious location gives the
say the steps:
A total of 3 steps:
1. Compress the logo into a fixed-size square image
2. Turn the logo into a circular logo
3. Merge the logo with the background map
Nonsense not much to say, directly on the code:
Load->library (' curl ');} /** *
The migation in Laravel is similar to a version control for data.
1. Create a database
(1) Create a database based on a database PHP file
php artisan migrate
(2) If a creation error is found, you can revoke
php artisan
PHP7 compiling and installing the Redis extension
Background: The recent upgrade of PHP to 7.0 requires a redis extension,sudo apt-get install Php7-redis not found can only compile the installationCompile the installation process as follows
Write a lot of code every day, will feel write some code completed into a physical work, in order to escape from the complex, I will move a little mind, write some practical gadgets. I would like to take this as a starting-up and hope that everyone
PHP Development Group Bird Govio developed PHP extension framework
Installation
Windows download Extension: https://pecl.php.net/package/yaf/2.2.9/windows
Depending on your computer system and PHP version number selection, NTS is thread insecure,
These two functions have not been very understanding, write a small program to deepen understanding!
PHP/* * Isset-detects if the variable is set * returns TRUE if the variable exists, otherwise false** empty -checks if a variable is
Same point:
The first include (), include_once (), and require (), require_once () are both used to contain and run the specified file, and the contained files are structurally identical when executed.
For example: include ("file.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