1. Ordered Structure
2. Branch Structure
2.1 if... else
2.2 if... elseif
2.3 switch
3. Loop Structure
3.1 while
3.2 do... while
Similar to C/C ++
3.3
' (= 0;
3.4Foreach
The foreach statement is used to traverse arrays. There are two syntax
In php, Constant and Define are constants. So I will introduce a method that can dynamically use the Constant and Define value methods. I hope this will be helpful to you.
How should I use PHP to show or use dynamic Constant/Define values? Ex: The
There are many ways to obtain IP addresses in php. Next I will introduce how to use linux commands to obtain IP addresses and convert them into array output. Below I also introduce some common php IP address processing instances.
PHP obtains the
In php. in ini, if we do not modify the post_max_size and upload_max_filesize parameters, a maximum of 2 MB files can be uploaded by default. If the number of MB or larger files cannot be uploaded, next I will introduce several methods for modifying
In php, we can directly use php to process URLs for pseudo-static operations. However, this pseudo-static mode is not a standard and can be said to look like a commodity, but it is quite comfortable, of course, if you want to implement real
Because the dongle function is installed on the server, our direct SQL cannot be used. Next I will introduce you to phpmyadmin to change the SQL statement to base64 for transmission to solve this problem.
1. First modify libraries/header. inc.
There is no size limit for the ckeditor editor to upload images or files. Here we will introduce two solutions to the size limit of the files uploaded by ckeditor.
One method can be used to limit the size of the PHP. INI configuration file to be
In php, cookies and sessions are usually used to register login and record user information. However, cookies and sessions are very different. Let's take a look at them.
Session Introduction: HTTP (Hypertext Transfer Protocol) defines the
When using Baidu and google, we will find that there will be related prompts as long as we enter one word, which improves the website experience, next, I will share with you an example of an automatic prompt box in the drop-down menu of Baidu Google
In php, we sometimes write a simple website page access statistician. The following section describes how to use PHP to implement counter code. I hope this method will be helpful to you.
Let's add a counter to the homepage. It is helpful to
The following is a PHP Class and object learning note written in the course. I hope this tutorial will be helpful to you.
Personal notes... for reference. If you have any mistakes, please point out. Thank you.
The Code is as follows:
ProblemAdding a watermark in php cannot remove the watermark backgroundSolutionThe effect of adding a watermark to a gif image is the same as that of a jpg image without a white background.Attachment: you cannot download or view attachments in your
Install php tutorial myadmin in personal space
Of course, you have the mysql tutorial database tutorial. Download the latest phpmyadmin mysql manager. Decompress the package and obtain a phpmyadmin directory (you can rename it). Find the config. inc.
Php Tutorial System Time Zone 8 time difference Setting MethodYou can modify the time zone of the php System in either of the following ways:1. Modify php. in the INI file, locate "; date." in [date. timezone = ", change this item to date. timezone =
Mb_convert_encoding is used to convert the encoding. I have never understood the concept of program encoding, but now it seems a bit open. However, the English language generally does not have Encoding Problems. Only Chinese data can have this
After upgrading php today, a page showing Deprecated: Function set_magic_quotes_runtime () is deprecated in F :\\ wwwroot \ mongodb \ manage \ app is displayed. php on line 13 Error. Later, Baidu learned the cause of the high version of php and set
This article introduces how to solve the memory leakage of PHPExcel Allowed memory size of. If you have such problems, refer.
After I use PHPExcel to import a document containing about 31 columns and 500 rows, PHP reports the following error:
Fatal
After changing the Php environment today, we found that the error message "Deprecated: Function session_register () is deprecated" is displayed. I will introduce it to you.
Let's first look at the code
The Code is as follows:
Copy code
Today, I asked the customer to organize a website and found the firefox prompt: the page you are trying to view cannot be displayed due to a Content Encoding Error because it uses an invalid or unsupported compression format, I think the customer is
This article introduces the Strict Standards: Only variables shocould be passed by reference in solution. For more information, see.
Php uses the built-in reset function to obtain the value of the first element of array. For example:
The
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