2012-09-22 51 views
0
更換

我使用的網址是:http://example.org/codecabana/runCode.php?code=%23include%20%3Cstdio.h%3E%0Aint%20main(void)%20%7B%0Aprintf(%22Code%20Cabana!%22)%3B%0Areturn%200%3B%0A%7D&lang=C
的問題是,它似乎與\被替換" 我的PHP腳本是:「是過得去 PHP中

<?php 
include "sl.php"; 
$code = $_GET['code']; 
$lang = $_GET['lang']; 

try { 
$app = new slApp($plaintext); 
$result = $app -> run($code , $lang); //Pass the result of the request, as an array, to $result 
echo $result['output'],"{BREAK}"; 
echo $result['compiler_errors']; 
echo $code; 
}catch(Exception $e) { 

    echo $e -> getMessage(), "{BREAK}", "An error has occurred! CODE: " , $code , "Lang: " , $lang; 

} 
?> 
+0

關閉'magic_quotes' – zerkms

+0

如何做到這一點? – Sirens

+0

1.谷歌爲它2.它的關閉在php.ini或.htaccess – zerkms

回答

-1

可以打開從你的服務器上的文件php.ini關閉magic_quotes的。

您可以從PHP腳本運行phpinfo()顯示您當前的PHP安裝。