在DW中写一个嵌入php的页面,预览只能看到个php的图标,代码还报语法错误,但用IE去跑却能跑出来

2025-06-22 10:47:55
推荐回答(2个)
回答1:

不是啦,php的代码是这样的

$str="book";
echo "There is a {$str}";
echo "There are three {$str}s
";
echo "There are three {$str}s";
?>

 第四行的代码是这样的:echo "There are three {$str}s
";

回答2:

你看的这个是 设计视图 设计视图时给美工用的 意思就是 他只能解析HTML标记 动态语言解析不了 所以显示不出来 你只能在浏览器下看效果