2014-02-22から1日間の記事一覧
use <消したいデータベース>; db.dropDatabase() ;
サーバーから適切なContent-typeを指定してあげれば、location.hrefの設定のみでよい。 php header('Status: 200 OK'); header('Content-type: application/octet-stream'); header('Content-Disposition: attachment; filename="hoge.txt"'); // ファイル名…