Study Area Facebook粉絲團http://www.facebook.com/sataiwan
0 會員 與 1 訪客 正在閱讀本文。
$file = "test'123";shell_exec("mv ".escapeshellarg($file)." /tmp/");$file = 'test"123';shell_exec("mv ".escapeshellarg($file)." /tmp/");
看你是要用 ' 還是要用 " 吧. 然後把檔名中的該字元換成 \' 或 \" 吧.
$file = scandir取得含有兩個跳脫字元目錄名..shell_exec("mv ".addslashes($file)." /tmp/");