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.
DSO として構成された php 5.3 では、.htaccess で以下を使用して、.jpg ファイルを php として実行することができます。
<Files *.jpg> ForceType application/x-httpd-php </Files>
ただし、PHP を FCGI として構成すると、これは機能しなくなります。助言がありますか?
むしろこのコードを試してください:
AddHandler application/x-httpd-php .jpg
またはこれ:
AddType application/x-httpd-php .jpg
これらのコードは、コードの代替です。