我在一些if/else语句中运行下面的代码,我在同一个文件中有一个奇怪的问题,下面的确切代码工作正常,但是在另一个区域中,如果它被调用,我得到这个错误;不能在php中包含文件
Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\webserver\htdocs\processing\process.friends.php on line 168
Warning: include(http://localhost/index.php) [function.include]: failed to open stream: no suitable wrapper could be found in C:\webserver\htdocs\processing\process.friends.php on line 168
$_SESSION['sess_msg'] = 'Please Enter the Correct Security Code';
$_GET["friendid"] = $friendid;
$_GET["p"] = 'mail.captcha';
$_GET["f"] = 'friend';
include ("index.php");
exit;
而只是为了澄清我njot试图在同一时间运行这段代码的2倍,它更像是这一点;不只是这样,但你得到的是他们没有在同一时间
if(something){
run the code above
}else{
run the code above
}
如果它的事项运行的地步,我目前在Windows PC上运行的LAMP设置
是的,这只是一个测试代码,它没有影响它的工作与否,虽然 – JasonDavis 2009-08-07 18:01:18
看起来像它确实修复它,我必须忽略这之前,奇怪它通常是最花时间来修复最简单的问题,通常从俯视他们,因为他们看起来很简单,谢谢 – JasonDavis 2009-08-07 18:07:28
优秀!很高兴我能帮上忙。是的,这很真实,但你在这个过程中学到了很多东西。继续前进,你会很快成为一名职业球员。 – 2009-08-07 18:22:31