Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:28:31+00:00 2026-05-13T05:28:31+00:00

I’ve got a PHP-based web app that runs on all kinds of my customer’s

  • 0

I’ve got a PHP-based web app that runs on all kinds of my customer’s servers, mostly apache, but sometimes IIS. I’m using a bunch of JSON files for storing image URL data to be loaded by flash elements.

Problem: IIS6+ won’t load a .json file, it returns a 404 error because it’s not a known mime type (why IIS doesn’t recognize .json is beyond me).

I’ve googled this a bunch, and read this SO post:

Get IIS6 to serve JSON files (inc. POST,GET)?

But I’m trying to figure out a way to convince IIS to accept the JSON files without the user having to contact their webhost and ask them to make a server-wide change. Is this possible? Is there something sort of like a php_ini setting or some sort of script-based solution to tell IIS that .json’s are OK?

If the answer to above is NO, I’ve read a few places suggesting setting the json file extension to .txt, which I’ve confirmed works on the IIS7 server I’m troubleshooting on, with no apparent deleterious effects to the flash elements. If I had to, could I write all of the json files as .txt instead? Would there be any down-sides to doing it that way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:28:31+00:00Added an answer on May 13, 2026 at 5:28 am

    In IIS6, unfortunately, unless you can persuade all your customers to add the .json mime type, you’re kind of out of luck.

    I don’t see any downside of storing the JSON content as say .json.txt however.

    On IIS 7, if the hoster has delegated control of the <staticContent> configuration section in <system.webServer> to the site user then you can control this in the web.config file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want to count how many characters a certain string has in PHP, but
I have a small JavaScript validation script that validates inputs based on Regex. I
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.