普通网友 2011-09-07 08:02
浏览 40
已采纳

关于php和dreamweaver的问题?

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

  • 写回答

2条回答 默认 最新

  • doucheng1944 2011-09-07 08:21
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置