Question about php and dreamweaver?

与世无争的帅哥 提交于 2019-12-02 13:30:45

This is how on CS5:

  1. Click Site(in toolbar).
  2. Click New Site.
  3. Select the Servers tab and select the new server cross +
  4. Select the Connect using: option box and choose Local/Network.
  5. Select Server Folder: as the root to your htdocs. e.g:C:\xampp\htdocs and the Web URL: as http://localhost
  6. Click Save.

Adding a new file to the project:

In the Business catalyst panel(to the bottom right), Right click the connection - New file. Rename it extension .php and your good to go.

UPDATE: PHP will not purse PHP in .html files by default.

Todo this: Create a .htaccess file and place this in it:

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

Hope this helps

Dreamweaver does not run PHP itself afaik. You need a Webserver that is able to execute PHP scripts (on Windows I recommend XAMPP apachefriends.org for local testing)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!