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.
MAMP PRO で .asp ファイルを .php として実行したい。そこにはhtacessはありませんが、http.confファイルを編集しました。
このようにhttpd.confに行を追加しましたAddType application/x-httpd-php .asp .aspxが、それでもPHPソースコードが表示されます。
AddType application/x-httpd-php .asp .aspx
それらも実行しません。アイデアはありますか?
私はあなたがラインを逃していると思います...
AddType application/x-httpd-php .asp .aspx AddHandler application/x-httpd-php .asp .aspx
MAMPを再起動することを忘れないでください。