查看: 1022|回复: 5
|
PHP Echo"
[复制链接]
|
|
发表于 27-10-2009 03:51 PM
|
显示全部楼层
echo是把output print在browser里...拿走就没有东西出来咯...除非那些html不是在php tag里... |
|
|
|
|
|
|
|
发表于 29-10-2009 09:43 AM
|
显示全部楼层
echo "<link href='$General_Image_Dir/style.css' type=text/css rel=stylesheet>";
echo "<body oncontextmenu=\"return false;\" style=\"background-image: url('$General_Image_Dir/background/atmosphere/atmosphere.jpg')\">";
echo "<base target=\"slfrm\">";
变成
<link href='<?=$General_Image_Dir?>/style.css' type=text/css rel=stylesheet>
<body oncontextmenu="return false" style="background-image: url('$General_Image_Dir/background/atmosphere/atmosphere.jpg')">
<base target="slfrm"> |
|
|
|
|
|
|
|
楼主 |
发表于 29-10-2009 07:39 PM
|
显示全部楼层
回复 3# lawty 的帖子
我试过了...
不可以咧... |
|
|
|
|
|
|
|
发表于 29-10-2009 09:26 PM
|
显示全部楼层
echo 拿走了就不要放在php tag里...
比如
<?php
.................................php syntax................................................
echo "<link href='$General_Image_Dir/style.css' type=text/css rel=stylesheet>";
..................................................................................................
.................................php syntax................................................
.................................php syntax................................................
?>
拿走echo
<?php
.................................php syntax................................................
?>
<link href='<?=$General_Image_Dir ?>/style.css' type=text/css rel=stylesheet>
..................................................................................................
<?php
.................................php syntax................................................
.................................php syntax................................................
?> |
|
|
|
|
|
|
|
发表于 3-11-2009 03:33 PM
|
显示全部楼层
$P1Ms[image] 用ctrl+f 找你的file(php/html)看看那里用到了
如果你用着crimson 的话alt+ctrl+F 会帮你找整个folder的 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|