When PHP parses a file, it looks for the start
, the tag tells PHP to start and stop explaining the code in it. Parsing this way allows PHP to be embedded in a variety of documents that are ignored by the PHP parser in the case of anything other
PHP basic syntax preface
PHP scripts can be placed anywhere in the document. This article mainly includes the following content:
PHP tag
Separating from HTML
Command separator
Note
PHP tag
PHP script
End:
When parsing a file,
Why can't PHP code directly save HTML files ?? & Gt; PHP static page generation tutorial
1. the server will parse the file based on its suffix. if it is an HTML file, the server will not parse the syntax, but directly output it to the browser. 2. if
[2014] [Xinxing] [php] [autumn] [4] string and comment and simple variable calculation ************* string introduction * *******************
1. the four basic data types we introduced in the previous section are not described as strings, so
PHP Generate static Page method
One, PHP script with dynamic page.
PHP script is a server-side script, can be embedded and other methods and HTML files can be mixed, or class, function encapsulation and other forms, in the form of templates to the
With the strong PHP, attention to its friends are more and more, I see a lot of friends in various places to ask PHP static page article system method, has done before such a system, then talk about some views, for your reference. Well, let's go
In a programming language, either
single quotation marksStill is
Double quotes, all have a very important role in
PHPLanguage is the same. Compared to ASP, PHP quotation marks better use, the following for you to introduce the difference between
PHP Learning Summary 1,
Echo "welcome to imooc! "; Output string
?>
2. the string is enclosed by "" or ''. The two characters can be connected.
3. comment
//
4. line feed
5. the variable name must be identified by the $ symbol
6.
Different PHP installation environments may use different php. ini-CLIPHP (command line PHP parser ). Therefore, when running the model or crud command to use yiicshell, even if you confirm that you have enabled PDO and the corresponding database
PHP generates static page code and call Methods
I. php scripts and dynamic pages.A PHP script is a server-side scripting program that can be mixed with HTML files by embedding methods, classes, function encapsulation, and other forms to process user
Find what was found in the mysql help document during mysql_pconnect, and record it here.
The web server uses php to generate a web page in three ways:I. Use PHP as CGI Wrapper. In this way, each request to reach the web server will cause a php
With the increase of Website access traffic, every read from the database is at the cost of efficiency. Many users who use access as the database will have a deep understanding. When using static pages for search, they will also be given priority.
I. PHP scripts and dynamic pages.
A PHP script is a server-side scripting program that can be mixed with HTML files by embedding methods, classes, function encapsulation, and other forms to process user requests in a template. Regardless of the
What can PHP do ?. PHP can do anything. PHP is mainly used for script programs on the server. Therefore, PHP can be used to complete the work that can be done by any other CGI program, such as collecting form data and generating dynamic PHP to do
Php technology to generate static pages. Let's first review some basic concepts. I. PHP scripts and dynamic pages. PHP script is a server-side script program that can be mixed with HTML files by embedding or other methods. let's review some basic
Easily compile PHP static pages. With PHP's strength, more and more friends are paying attention to it. I have seen many users post and ask about PHP static page article systems in various places. I have done such a system before, as PHP becomes
Variable
Defining a variable is the memory request space to the server to
store the data.
Such as:
$var _name = "Apple";
“
=
"On the left is
Variable name
, right is
What is PHP?
PHP ("Php:hypertext preprocessor", the acronym for Hypertext Preprocessor) is a widely used, open-source, multipurpose scripting language that can be embedded in HTML, especially for Web development.The above is a simple answer, but
I have seen a lot of friends posting in various places asking PHP about how to generate a static article system. I have done such a system before, so I would like to talk about some ideas for your reference. Now let's review some basic concepts. I.
Directory[1] constant definition [2] custom constant [3] system constant [4] constant value [5]defined ()
Constant definition
Constants are similar to variables, but constants cannot be changed or revoked once defined. The main function of
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.