Re: [請益] 如何使用外部指令 exec解壓縮?

看板PHP作者 (我是道明柏毅)時間19年前 (2006/05/10 14:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
使用 system() system ( string command [, int &return_var] ) http://php.nctu.edu.tw/manual/en/function.system.php ※ 引述《micchiu (PP )》之銘言: : ※ 引述《dinos (來游泳吧~~)》之銘言: : : system($cmd) 可以把訊息印出來 : : % /usr/local/bin/unzip -d [path] -oxq [filename] : : 所以就是 : : $cmd = sprintf("%s/unzip -d %s/ -oxq %s", : : _GLOBALS_DIR_BIN,$targetdir,$filename); : 我有試用,可是還是不行… : 我有試exec("ipconfig"); : 但是沒有任何東西印出來,不知道該如何改進, : 謝謝大家的指點 -- ******************************************************** * 瘋狂小惡魔分享討論區 * * http://www.forum.Wu-Boy.com/index.php * * 無名相簿-appleboy * * http://www.wretch.cc/album/appleboy * ******************************************************** -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.107.89
文章代碼(AID): #14OOzRj0 (PHP)
討論串 (同標題文章)
文章代碼(AID): #14OOzRj0 (PHP)