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 8967069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:09:53+00:00 2026-06-15T17:09:53+00:00

On my system (running PHP 5.3.15, Apache 2.2.22) xajax works fine. On another system

  • 0

On my system (running PHP 5.3.15, Apache 2.2.22) xajax works fine. On another system running PHP 5.2.17, Apache 2.2.22), xajax responses are preceded by a blank line. This can be seen in the Firebug Network tab, XHR->Response. There’s literally a blank line before

<?xml version="1.0" encoding="utf-8" ?>

What on earth could be causing this and how can I fix it?

Having a blank line before the start of an XML document is an error and leads to the error

Error: XML or text declaration not at start of entity

in the Browser’s Error console.

  • 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-15T17:09:55+00:00Added an answer on June 15, 2026 at 5:09 pm

    Look through all the PHP includes which are executed before your expected XML output. It is likely that one or more of them has an errant line break either before the opening <?php or following the closing ?>, which gets passed to the browser as output before the XML header.

          <-- Line break
    <?php
    
    ?>
          <-- Line break
    

    If you are on a UNIX-like system, you can use head to examine the first line or tail to examine the last line of each file. Look for the file that doesn’t begin or end with <?php / ?>

    # In a directory of PHP files...
    head -n1 *.php
    tail -n1 *.php
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've came across on this problem, I have a sever running apache and php.
I've got a small CMS system written in PHP and running on Apache. The
I'm trying to connect to Gmail through IMAP with PHP running in Apache. This
System: Apache 2.2 running on Windows 2008 Server with PHP 5.2.17 VC6 Thread-Safe as
So I have a PHP system over an Apache Server running on a Window
I am doing some maintenance work on an older system that is running PHP
Running PHP under IIS on my Win XP Pro system. I cannot debug my
I have a PHP app running happily on the following system: web app: PHP
We have a custom PHP/MySQL CMS running on Linux/Apache thats rolled out to multiple
I have trouble running wget through php exec or system functions. The configuration is

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.