PHP programming is the fastest to understand the software environment and preparation

  • 2020-03-31 21:20:42
  • OfStack

Download the installation can be used, such integrated development environment is a lot of, if you have already installed PHP+Mysql development environment according to other books, debugging you do not need to change. I'm renting space, so it doesn't matter if you're debugging locally, it works the same.

The code I wrote was dreamweaver. To be honest, I only use its code highlighting and CSS functionality, all by hand. You can use notepad, Zend Studio, etc. (but don't blame me if you have a problem, because you can also read my tutorials and program on LUNIX, or even study on a space ship, provided you don't violate the purpose of my book).

FTP upload tool can be used: FlashFXP, etc. All of these things are on this site.

I coded my PHP files in utf-8. The benefits of internationalization and good code coupling between functions have advantages over GB2312. You want to use GB2312 words also line, but the book individual two or three functions you have to be flexible, involving files, databases, urls, and so on.

The head of PHP has this line:
< Meta HTTP - equiv = "content-type" Content = "text/HTML. Charset = utf-8 "/ >
You can change the page encoding to utf-8 from the dreamweaver menu: modify -- page properties (this is the default).
The Hello world program is not available in the book, so use this example instead:
Hello world actually USES PHP's output content function.
< ? PHP
Echo "Hello world".
? >
Instance 1: outputs values from 1 to 100
 
<?php //PHP code start and end identification, equivalent to asp <%
//The following output values range from 1 to 100
for($i = 0;$i < 100;$i++) //Loops, like any other language, are preceded by $identifiers, and all variables are undeclared.
{ 
echo $i .  " rn " ; 
 
} 
?> 

The above code is saved as a *. PHP file and then on the PHP server directory in the browser open path (such as: http://localhost/index.php).
Of course, in order to publish a website to the web you also need to apply for a domain name and space, so I won't go into that.

Related articles: