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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:33:16+00:00 2026-06-03T02:33:16+00:00

My Site is not opening in IE. I know about CSS incompatibilities this is

  • 0

My Site is not opening in IE. I know about CSS incompatibilities this is why I added the following code to redirect to a static page if UserAgent belongs to Internet Explorer. The code that detects IE and redirects is given below:

Site link is:

http://adnansiddiqi.com/main.html

http://pastebin.com/MCRbsrmi

The header file is included on top of the main.php

Please guide!

  • 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-03T02:33:18+00:00Added an answer on June 3, 2026 at 2:33 am

    Now that you’ve got the site working properly, we finally have an error message:

    Warning: Cannot modify header information – headers already sent by (output started at /home/adnansid/public_html/main.php:10) in /home/adnansid/public_html/header.php on line 15

    See item 6 from the list below. Don’t call header() after you’ve already sent output. You must call it before any and all output.


    Here are a series of things you need to fix/address/attempt:

    1. Two undefined variables, isMobileSafari, and isOldMobileSafari.
    2. Your <title> needs to be within your <head>.
    3. No doctype was provided.
    4. You’re not outputting anything after the opening <body> tag.
    5. Check to make sure you have short-tags enabled (try using the longform <?php ... ?>)
    6. Don’t call header() after you’ve already output content.
    7. Check your log files for any obvious messages.

    I tried accessing the same page in Chrome, thinking maybe you had broken your user-agent sniffing code, but I found that within Chrome as well nothing is output after the opening <body> tag.

    I would try to diagnose the reason why your body isn’t being output, but you’ve not provided enough code for us to do that. Please provide us a bit more to further assist you.

    The quick solution is to avoid user-agent sniffing code, and instead detect features.

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

Sidebar

Related Questions

Menu on my site is opening up even when my cursor is not on
The first page I load from my site after not visiting it for 20+
I am not sure why the about field on my site, sailing down in
I'm not talking about the way and means of opening new windows or tabs,
I'm having trouble with a test site's design. When I'm opening my html page
I'm opening up a feature on my site that will not require a user
I'm working on a web site (not a web application) in VS 2008 .Net
My asp mvc site is not caching content or script files. How do I
I have a site thats not safe.. The Certificate pops up in the address
I'm trying to svn checkout into treeoil.com's public_html directory (site is not really named

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.