php新手,求解决办法:failed to open stream: No such file or directory in …… 10
结果:Warning:include(new.php)[function.include]:failedtoopenstream:Nosuchfileordirector...
结果:Warning: include(new.php) [function.include]: failed to open stream: No such file or directory in D:\php\AppServ\www\EX-test\index.php on line 25
Warning: include() [function.include]: Failed opening 'new.php' for inclusion (include_path='.;C:\php5\pear') in D:\php\AppServ\www\EX-test\index.php on line 25
代码:
<?php
switch($_GET[lmbs]){
case "最新商品":
include "new.php";
break;
case "热门商品":
include "jollification.php";
break;
case "推荐商品":
include "commend.php";
break;
case "订单查询":
include "order_form.php";
break;
default:
include "new.php";
break;
}
?>
<map name="Map" id="Map">
<area shape="rect" coords="99265113" href="#"/>
<area shape="rect" coords="7889131115" href="index.php?lmbs=<php echo urlencode("最新商品");?>"/>
<area shape="rect" coords="14592201114" href="index.php?lmbs=<php echo urlencode("推荐商品");?>"/>
<area shape="rect" coords="21291268114" href="index.php?lmbs=<php echo urlencode("热门商品");?>"/>
<area shape="rect" coords="47493529113" href="index.php?lmbs=<php echo urlencode("订单查询");?>"/>
</map> 展开
Warning: include() [function.include]: Failed opening 'new.php' for inclusion (include_path='.;C:\php5\pear') in D:\php\AppServ\www\EX-test\index.php on line 25
代码:
<?php
switch($_GET[lmbs]){
case "最新商品":
include "new.php";
break;
case "热门商品":
include "jollification.php";
break;
case "推荐商品":
include "commend.php";
break;
case "订单查询":
include "order_form.php";
break;
default:
include "new.php";
break;
}
?>
<map name="Map" id="Map">
<area shape="rect" coords="99265113" href="#"/>
<area shape="rect" coords="7889131115" href="index.php?lmbs=<php echo urlencode("最新商品");?>"/>
<area shape="rect" coords="14592201114" href="index.php?lmbs=<php echo urlencode("推荐商品");?>"/>
<area shape="rect" coords="21291268114" href="index.php?lmbs=<php echo urlencode("热门商品");?>"/>
<area shape="rect" coords="47493529113" href="index.php?lmbs=<php echo urlencode("订单查询");?>"/>
</map> 展开
3个回答
展开全部
include "new.php"; 这个new.php路径写的不正确。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
首先你的文件名不能用中文。最好全是英文,然后再来看路径问题。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
找不到文件,你路径写的有问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询