有关php和dreamweaver的问题? [英] Question about php and dreamweaver?

查看:96
本文介绍了有关php和dreamweaver的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP上手动安装了apache,mysql,php。



我如何使我的dreamweaver可配置为php(以便它可以运行php)。 / p>

我添加以下行:

 <?php print hello世界; ?> 

但是什么也没出现



更新:
我点击了我的站点:



站点---->管理站点->编辑
服务器----> +
服务器文件夹:D:\Apache2.2\htdocs
网址: http:// localhost:8080 /



现在,当我关闭它并添加一个新的php文件时,该php文件就可以工作了。但是当我在这样的常规html文件中编写代码时:

 <?php打印 hello world; ?> 

地址如下:
http:// localhost:8080 / index.html

解决方案

< h2> 在CS5上是这样:


  1. 单击站点(在工具栏中)。

  2. 单击新站点。

  3. 选择服务器选项卡,然后选择新的服务器跨行 +

  4. 选择使用连接:选项框,然后选择本地/网络。

  5. 选择服务器文件夹:作为htdocs的根目录。
    例如:C:\xampp\htdocs和 Web URL: http:// localhost

  6. 单击保存。



向项目添加新文件:



业务催化剂面板(位于右下方)中,右键单击连接-新建文件。
将其扩展名重命名为.php,这很不错。



更新:默认情况下,PHP不会在.html文件中清除PHP。



Todo this:
创建一个 .htaccess 文件并将其放在其中:

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

希望这会有所帮助


I have apache, mysql, php installed manually on windows xp.

How can I make my dreamweaver configurable for php (so it can run php)..

I add this line:

<?php print "hello world"; ?>

But nothing appears

UPDATE: I clicked on my site:

Site---->Manage Site-->Edit Servers---->+ Server Folder:D:\Apache2.2\htdocs Web URL: http://localhost:8080/

Now when I close this and add a new php file,, the php file works..but when I write the code in a regular html file like this:

<?php print "hello world"; ?>

The address looks like this: http://localhost:8080/index.html

解决方案

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

这篇关于有关php和dreamweaver的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆