Hi, guys

I made a web application and run in local host in Mac, but the problem is that when I copy that folder and paste in my system (xp) then it is not working, I don't know what is the problem ....???

can any buddy know this problem then plz share it to me...?


This error comes: when I run this application through windows.. and all the files are made in mac

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the website owners to inform them of this problem.

Dani AI

Generated

The browser error means the client got compressed bytes it could not decode. That usually happens when the response body is gzipped but headers or server settings do not match, or when compression is applied more than once. In this thread the problem only appeared after moving the app from Mac to Windows XP, and the app stopped failing when the PHP-level gzip buffering was removed.

Common checks and quick tests:

  • Inspect the HTTP response headers (Developer Tools -> Network). Look for a Content-Encoding header and whether it matches the actual payload.
  • Compare PHP/info on both machines (check if zlib output compression is enabled) and look for web‑server compression modules (Apache mod_deflate, nginx gzip, IIS compression).
  • Verify there is no BOM or stray whitespace sent before headers (files saved as UTF-8 with BOM or with accidental output can corrupt a compressed stream).
  • Test with a different browser or with antivirus/proxy disabled; some local filtering can break compression.

Practical fixes and guidance:

  • Ensure only one compression layer runs. Either use the web server module for gzip (recommended) or enable PHP's zlib output compression, but do not combine them.
  • Remove any premature output (BOM or stray echo/whitespace) so headers are sent correctly.
  • Use phpinfo() on each host to confirm which compression features are active, and adjust php.ini or server config accordingly.
  • If immediate compatibility is preferred, disable PHP-level compression and rely on the server, or vice versa, until configurations are aligned across environments.

Notes tying back to the thread: reported the issue went away after removing the PHP gzip buffering, which points to duplicate or mismatched compression on the XP setup. ’s suggestion to confirm the files are plain text is also useful—file encoding and unexpected output are common culprits.

Recommended Answers

All 2 Replies

if this is php code, then it should be plain text and you should be able to open the file in notepad or a programmer's editor (on the PC). Are you able to do that?

I use this function
ob_start('ob_gzhandler'); so that after use this function that error comes.. I easily solve that error when removing this function, thnx for giving me the help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.