Basic php syntax 1. the first php program 1. write a suffix named helloworld. php file 2. set helloworld. put the php file in the root directory of the web server document. 3. access helloworld under web server management through a browser. php file: localhosthelloworld. php & lt ;? Phpecho & quot; basic hellowo php syntax
I. The first php program
1. compile a file with the suffix helloworld. php.
2. put the helloworld. php file to the root directory of the web server's document.
3. access the helloworld. php file managed by the web server through a browser: http: // localhost/helloworld. php
4. you can write html, css, javascript, and other languages in the php file. However, php fragment code will be parsed by the php application server,
The parsed code is sent to the client's browser, and other front-end code is directly sent to the client, and the client uses the browser for resolution.
II. php syntax
1. php language mark
1 .) --- >>> This is recommended. If?> If the script ends, you can skip this step.
2 .)
3 .)
4.) <%> ---> if it cannot be used, change asp_tags = Off in c:/windows/php. ini to On
5 .)