Ad:
 
  • PHP Discussion Thread
  • Unsolved
  • Views: 30
  • PHP RSS
Similar Threads
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
Reputation Points: 26
Solved Threads: 29
Posting Whiz
samarudge is offline Offline
330 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: 65
Posting Pro
Atli is offline Offline
520 posts
since May 2007
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
Build Custom RSS Feed


Follow us on Twitter


© 2010 DaniWeb® LLC