Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

crayzeepete

macrumors newbie
Original poster
Aug 27, 2009
2
0
Hi,

I have a web server set up on my Mac, and I'm using it to develop some web software in PHP. One of the requirements it has is the ability to detect the MIME type of files on the system.

When it attempts to detect the MIME Type of '.js' files, it's coming up with 'text/x-c++', as opposed to 'text/javascript' or similar.

I thought this might be an apache problem, but running 'file -bI' on the command line brings the same result.

Any one know how I can correct this? I think that Xcode may have caused the initial problem, but that's an outright guess.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.