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;
}
?>
關閉'magic_quotes' – zerkms
如何做到這一點? – Sirens
1.谷歌爲它2.它的關閉在php.ini或.htaccess – zerkms