From silently to others ask how to learn PHP start, to later many people again to ask silently how to learn PHP, whether silently is a novice, or veteran, it seems that always feel a clear thread to come, but, silently since learned PHP, then I walk
In this section, when embedding HTML, PHP has four tags,, (need to turn on Short_open_tag), (need to turn on asp_tags), can be opened in php.ini, recommended to use . There are three comments in PHP that are//,#,/**/.2.1 PHP TagsWhen parsing a
Summary of new features and features for each version of PHP5Because PHP that "set hundred of the length" of the egg pain grammar, coupled with the community atmosphere is not good, many people on the new version, new features are not interested.
Ways to improve PHP programming techniquesHere are a few ways to improve your PHP programming techniques.1. PHP tagsI know some people who write PHP code like to use the 2, the debugging of PHP codeSometimes we run into problems running PHP code and
We have never manually opened a PHP-related process, which is running with Apache booting. PHP is connected to Apache via the Mod_php5.so module (specifically, SAPI, the server Application programming interface).PHP has a total of three modules: the
Example: Adding a mbstring extension library1. Enter the PHP source directory (no source code can be used first command: # PHP-V Check the version number, and then on the PHP website to download the source code)2. Enter the directory of the FTP
Variables in PHP
Variables are used to store values, such as numbers, text strings, or arrays.
Once a variable is set, we can use it repeatedly in the script.
All variables in PHP start with the $ symbol, and the variable name is case-sensitive.
The
Topic: Find the error in the following code: Function baz ($y $z) { $x = new Array (); $x [ Sales] = 60; $x [Profit] =: foreach ($x as $key = $value) { &nbs p; echo $key + "" + $value + ""; } } How many can you find?
Talk about how beginners learn php ^_^
Author: silently
The beginning of the article enumerated so many contact methods, it will inevitably make everyone feel a bit of the meaning of the ad, but there is no doubt that there are so little ^_^ of
I put these two statements together to introduce, the reader can compare study.1.require () statementThe Require () statement is used to specify a file in place of the statement itself, just as the include () statement in C language. If the URL
Prepare an article
First, the environment description:
Operating system: Windows Server 2008 R2
PHP Version: PHP 5.4.4
MySQL version: MySQL5.5.25
Second, related software downloads:
1, PHP download address:
In the PHP development process, if you want to introduce a class from the outside, you will typically use the include and require methods to include the file that defines this class, but this may make the new script that references the file There is
Method one modifies php.ini
, display error message
display_errors = on
; display PHP start error message
display_startup_errors = on
; logging error message
log_errors = On
Method two need to debug PHP file head join
Ini_set ('
Dynamic | Web dynamic information theory
According to Merriam-webster Online, the term "dynamic" means that the content of a Web page is composed of "usually continuous and real-time generated activities or changes of information." "So when we talk
In order to understand the switch statement in order to avoid the lengthy statement, it is very important to know how it is executed. The switch statement Stone executes on one line (in fact, it is a statement). At the beginning, no code is executed.
Once programming, we discovered that the extension of the active pages used by the surrounding sites was growing richer, from the previous most popular Microsoft ASP (*.asp) to The Sun's JSP (*), which was once used as an easy-to-use, modular
Author: silently
EMAIL:
blueflashes@Gmail.com
homepage:http://blog.csdn.net/momodev/
qq:605407514
The beginning of the article enumerated so many contact methods, it will inevitably make everyone feel a bit of the meaning of the ad, but there is
A variable is the result of a number, string, or function that is stored in a program or in varying amounts.
Once a variable is set, we can use it repeatedly in the script.
All the variables in PHP start with the $ symbol.
The correct way to set
1.php code does not end in the introduction or ensures that there are no spaces after the end to ensure that PHP is included without being output "prevent headers and session_start () from controlling the output"In essence, it is important to note
Before a cloud host to play, installed a CentOS, and then set up a nginx+php+mysql environment, in accordance with the various tutorials on the Internet installed or encountered a little problem, so I did the installation process, and then record
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.