php间传递参数报错改如何改正?
各位大神,另有一问:我想在php间传递参数,网络查得可用超链接。照葫芦画瓢写了下面代码:--------C1.php--------....<?phprequire($_...
各位大神,另有一问:
我想在php间传递参数,网络查得可用超链接。照葫芦画瓢写了下面代码:
--------C1.php--------
....
<?php
require($_SERVER['DOCUMENT_ROOT'].'/database/index1.php?location=1');
?>
.....
报错如下:
Warning: require(/usr/home/hxu0050933/htdocs/database/index1.php?location=1) [function.require]: failed to open stream: No such file or directory in /data/home/hxu0050933/htdocs/dianzizhong/C1.php on line 79
Fatal error: require() [function.require]: Failed opening required '/usr/home/hxu0050933/htdocs/database/index1.php?location=1' (include_path='.:/var/www/php5/lib/php') in/data/home/hxu0050933/htdocs/dianzizhong/C1.php on line 79
望予解答。
总结一下,a.php中嵌入b.php,我想把a.php的网址传给b.php,怎么弄呢? 展开
我想在php间传递参数,网络查得可用超链接。照葫芦画瓢写了下面代码:
--------C1.php--------
....
<?php
require($_SERVER['DOCUMENT_ROOT'].'/database/index1.php?location=1');
?>
.....
报错如下:
Warning: require(/usr/home/hxu0050933/htdocs/database/index1.php?location=1) [function.require]: failed to open stream: No such file or directory in /data/home/hxu0050933/htdocs/dianzizhong/C1.php on line 79
Fatal error: require() [function.require]: Failed opening required '/usr/home/hxu0050933/htdocs/database/index1.php?location=1' (include_path='.:/var/www/php5/lib/php') in/data/home/hxu0050933/htdocs/dianzizhong/C1.php on line 79
望予解答。
总结一下,a.php中嵌入b.php,我想把a.php的网址传给b.php,怎么弄呢? 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询