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

  • Home
  • SEARCH
  • 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 8309119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:00:41+00:00 2026-06-08T19:00:41+00:00

I have an Ubuntu server with a LAMP stack. I have some javascript that

  • 0

I have an Ubuntu server with a LAMP stack. I have some javascript that has a php include in the middle of it.

For the past year the code has worked fine, but now there is a strange set of characters appearing at the end when viewed in a browser:

‹

It seems to be connected to the .js.php file extension. I can simplify it down to:

  • create test.php
  • create test.xx.php
  • create test.js.php
  • edit the files with vi and put in the word test
  • view them in a web browser
  • http://example.com/test.php will display test
  • http://example.com/test.xx.php will display test
  • http://example.com/test.js.php will display test ‹

In notepad++ it show that there are a couple of extra characters that are actually there:

enter image description here

Its not a standard PHP openend bracket < which might make sense.

Hunting for ‘.js.php’ or the characters in Google is pretty fruitless, so I’m completely stuck.

  • 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-06-08T19:00:45+00:00Added an answer on June 8, 2026 at 7:00 pm

    I had this problem too. The problem seems to be caused by the server gzipping the response incorrectly. (With mod_deflate of course).

    Disabling mod_deflate through .htaccess resolved the issue for me – note that you can do something like this to disable per filetype:

    SetEnvIfNoCase Request_URI \.*\.js\.php$ no-gzip dont-vary
    

    Strangely, I have two supposedly identical Ubuntu VMs – one where everything runs perfectly, and one where I need to disable mod_deflate. If anyone can figure why this is happening, I’d be interested to know!

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

Sidebar

Related Questions

I have an ubuntu server that i have some scripts that need to run
I have setup the basic LAMP server on Ubuntu 11.10 and had a few
I have an ubuntu server (11.10) on a single-board computer that occasionally is subject
We have a ubuntu test server that this simple script works fine on where
I have a bare-bones install of jenkins on my Ubuntu server that I installed
I have an Ubuntu Server and wanted to install subversion and set up some
So have an ubuntu server with lamp installed. We installed webmin so we would
I have an Ubuntu natty server running on Amazon EC2. My problem is that
I have setup an Ubuntu LAMP server, and I have had phpmyadmin working fine
I have a Ubuntu server and PHP5, and the PHP script files, and all

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.