Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はphpスクリプトを書いて、それを画像拡張子で保存できることを知っています。以下を私の.htaccess
.htaccess
AddType application/x-httpd-php .gif
しかし、特定のディレクトリ内のファイルのみをそのように扱いたい場合はどうすればよいでしょうか? どうすればいいですか?メール アカウントのフッターを作成することを考えています。基本的な非侵入型データを収集したいと考えています。これは機能しますか (クライアントの画像がオフになっていないと仮定します)?
<Files "/thisdirectory"> AddType application/x-httpd-php .gif </Files>
Apache 2.4 のドキュメントについては、こちらを参照してください。
http://httpd.apache.org/docs/current/mod/core.html