The fastest way to understand PHP programming (Lecture 1: Software environment and preparation)_PHP Tutorial

WBOY
Release: 2016-07-21 15:34:02
Original
757 people have browsed it

Just download and install it and you can use it. There are many integrated development environments like this. If you have installed the PHP+Mysql development environment according to other books, you don’t need to change it after debugging. I rented the space, so it doesn’t matter if I debug it locally, the effect will be the same.

The coding software I use is dreamweaver. To be honest, I only use its code highlighting and CSS features, and write all the code by hand. You can use Notepad or Zend Studio (but don’t blame me if you encounter problems, because you can also watch my tutorials and write programs in LUNIX, or even study on a spaceship, as long as you don’t go against my writing this book Purpose. )

ftp upload tool can be used: FlashFXP, etc. These things are all available on the Script House website.

I use UTF-8 encoding for PHP files. The advantage is internationalization and good code coupling between functions, which has advantages over GB2312. If you want to use GB2312, that's fine, but you have to adapt some of the two or three functions in this book, involving files, databases, URLs, etc.

PHP’s head has this line:

You can use dreamweaver Menu: Modify--Page properties, change the page encoding to utf-8 (the default is this).
Hello world program is not provided in this book, so let’s use this example instead:
Hello world actually mainly uses PHP’s output content function.
echo "Hello world";
?>
Example 1: Output values ​​from 1 to 100

Copy code The code is as follows:

// The following outputs values ​​from 1 to 100
for($i = 0;$i < 100;$i++) // Loop statements are the same as other languages. There is a $ sign in front of the variables, and all variables do not need to be declared.
{
echo $i . ”rn”;
/**
* Use the echo keyword to output to the screen. The . connector is equivalent to + in C language.
* Double quotes and escaping are the same as in other languages. Using single quotes instead of double quotes will not achieve the newline effect. You can try it.
*/
}
?>

Save the above code as The *.php file is then placed in the PHP server directory and the path is opened with a browser (for example: http://localhost/index.php).
Of course, to publish your website on the Internet, you also need to apply for a domain name and space, which I won’t go into here.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322491.htmlTechArticleYou can use it after downloading and installing. There are many integrated development environments like this. If you have installed PHP+ according to other books Mysql development environment, there is no need to change it after debugging. I rent space, local...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template