下载安装好就可以用,这样的集成开发环境很多,如果你已经按照其他书安装了PHP+Mysql开发环境,调试过就不用改了。我是租的空间,本地调试就没关系啦,效果一样的。
我用的代码编写软件是dreamweaver。说实话,我只使用其代码高亮和CSS功能,全部代码都是手工编写的。你用记事本或者Zend Studio等都可以(但一旦遇到问题别怪我,因为你也可以在LUNIX里面看我的教程和编写程序,甚至坐在太空船上学习,前提是不要违背我写这本书的目的。)
ftp上传工具可以用:FlashFXP等随便一个啦。 这些东西,脚本之家网站上面都有。
PHP文件我用UTF-8编码,好处是国际化,函数之间代码耦合得好,比GB2312有优势。你要用GB2312的话也行,但本书个别两三个函数你要变通一下,涉及文件、数据库、URL等的。
PHP的head有这么一行:
可以通过dreamweaver菜单:修改--页面属性,把页面编码改成utf-8(默认就是这个)。
Hello world 程序本书就不提供了,就用这个例子代替吧:
Hello world其实用到的主要是php的输出内容函数。
echo "Hello world";
?>
实例1:输出1到100的值
// 以下输出1到100的值
for($i = 0;$i {
echo $i . ” \n”;
/**
* 输出到屏幕用echo关键字,.连接符相当于C语言的+。
* 双引号、转义和其他语言一样,用单引号代替双引号则达不到换行效果,大家可以试试。
*/
}
?>
把以上代码保存为*.php文件然后放到PHP服务器目录用浏览器打开路径(如:http://localhost/index.php)即可。
当然,要发布网站到网络你还需要申请个域名和空间,这就不讲了。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

Zend Studio 13.0.1
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.