942,526 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 117
  • PHP RSS
Jul 28th, 2010
0

PHP interpret all extensions

Expand Post »
Hey,
Is there a way to get Apache to interpret all files with MIME types that are not already defined to PHP?
I've tried
AddType application/x-httpd-php *
Any other ideas?
Tnx,
Sam Rudge
Similar Threads
Reputation Points: 26
Solved Threads: 31
Posting Whiz
samarudge is offline Offline
354 posts
since May 2008
Jul 29th, 2010
0
Re: PHP interpret all extensions
Hey.

You can try something like:
text Syntax (Toggle Plain Text)
  1. <FilesMatch ".*(?<!gif|png|jpeg|jpg|js|css|xml)$">
  2. SetHandler application/x-httpd-php
  3. </FilesMatch>
The extensions list in the regexp are those who should not be interpreted as PHP.
Reputation Points: 93
Solved Threads: 70
Posting Pro
Atli is offline Offline
526 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: png image problem
Next Thread in PHP Forum Timeline: URL Rewriting Help!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC