我在一些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