您必须指定 URL 前缀,Dreamweaver 才能在您进行操作时使用测试服务器的服务来显示数据以及连接到数据库。Dreamweaver 使用设计时连接向您提供与数据库有关的有用信息,例如您的数据库中各表的名称以及表中各列的名称。
URL 前缀由域名和 Web 站点主目录的任意子目录或虚拟目录组成。
如果您要用来处理动态页的文件夹是您的主目录的子文件夹,则只需将该子文件夹添加到 URL。如果您的主目录是 c:\sites\company\,您的站点的域名是 www.mystartup.com,而您要用来处理动态页的文件夹是 c:\sites\company\inventory。输入以下 URL 前缀:
http://www.mystartup.com/inventory/
如果您要用来处理动态页的文件夹不是您的主目录或其任何子目录,则您必须创建虚拟目录。
http://www.mystartup.com/warehouse/
|
Web 服务器 |
URL 前缀 |
|---|---|
|
ColdFusion MX 7 |
http://localhost:8500/warehouse/ |
|
IIS |
http://localhost/warehouse/ |
|
Apache (Windows) |
http://localhost:80/warehouse/ |
|
Jakarta Tomcat (Windows) |
http://localhost:8080/warehouse/ |
对于运行 Apache Web 服务器的 Macintosh 用户,个人主目录是 Users:MyUserName:Sites,其中 MyUserName 是 Macintosh 用户名。安装 Mac OS 10.1 或更高版本时,将自动为该文件夹定义一个名为 ~MyUserName 的别名。因此,在 Dreamweaver 中您的默认 URL 前缀如下:
http://localhost/~MyUserName/
如果要用于处理动态页的文件夹为 Users:MyUserName:Sites:inventory,则 URL 前缀如下:
http://localhost/~MyUserName/inventory/
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/zh_CN/Dreamweaver/9.0/WSc78c5058ca073340dcda9110b1f693f21-79df.html