Last active
August 29, 2015 14:19
-
-
Save f-akazawa/3b071a5f1a9910489709 to your computer and use it in GitHub Desktop.
PHPで自動ダウンロード ref: http://qiita.com/f-akazawa/items/b38185779a1a011ef49b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system("su -u UserA -s スクリプト.sh"); > 検索スクリプトを実行 | |
wait,終了を戻り値で確認してから | |
system("su -u UserA -s zip -r 出来上がりファイル名".".zip"); > ZIPへ圧縮 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header("Content-Type: application/octet-stream"); | |
header("Content-Length: ".$content_length); | |
header("Content-Disposition: inline; filename=\"".$filename."\""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment