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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:30:19+00:00 2026-05-26T23:30:19+00:00

Many times I have used an css technique that I learned by myself. When

  • 0

Many times I have used an css technique that I “learned” by myself. When I depends on a dynamic stylesheet that I can put it on html doc, I use css files that’s are not css in fact, they’re php files. Example: style.css.php. ALWAYS worked. But now I’m getting trouble with this in a strange behavior that I never saw before. My fundo.css.php file have this simple format:

body {
    background: url(../arquivos/imagens/<?php

// some php functions.. 
echo "coyote.jpg";

?>) top left no-repeat;
}

It sends this response to the browser:

body {
    background: url(../arquivos/imagens/coyote.jpg) top left no-repeat;
}

Beautiful but if browser show the background! On Firebug console (as on Dev Tools in Chrome) in Network tab the url that’s browser trying to find is:

http://localhost:8080/ultimocaso/arquivos/imagens/%EF%BB%BF%EF%BB%BF%EF%BB%BF%EF%BB%BF%EF%BB%BFcoyote.jpg

If I just use an css normal file with that content it works like a charm.

Anyone knows tell me why the hell is happening that and/or how to fix it?

EDIT

I’m usgin Adobe Dreamweaver to edit my files and in my Preferences -> New Document the option to include BOM signature is OFF !!

  • 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-26T23:30:20+00:00Added an answer on May 26, 2026 at 11:30 pm

    The problem is that you are including files that have a UTF-8 BOM within your PHP.

    Although you cannot see this BOM (Byte Order Mark), you can imagine that the files are including in reality look like this:

    %EF%BB%BF<?php
    echo 'this is myinclude.php';
    ?>
    

    When you use the include function, you are effectively importing those characters into your file at the point where you included your code.

    <?php
    // some code
    include('myinclude.php');
    // some code
    ?>
    

    Is actually interpreted something like:

    <?php
    // some code
    ?>
    %EF%BB%BF
    <?php
    echo 'this is myinclude.php';
    ?>
    <?php
    // some code
    ?>
    

    One way to avoid the BOMs in the middle of your code is to make all includes somewhere where they will have less impact, such as at the beginning of your file. Another way (my personal choice) would be to save your imported files in a format that has no BOM, such as regular UTF-8.

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

Sidebar

Related Questions

I have a bit of code that I've used many times to export an
Ok, consider this common idiom that most of us have used many times (I
Many times I have seen Visual Studio solutions which have multiple projects that share
I have heard it many times that garbage collection in PyS60 is not up
I have read so many times, here and everywhere on the net, that mutexes
I have an application that writes many times to a formula/macro-laden workbook. It loops
I have used AtomicLong many times but I have never needed to use AtomicReference
I have used this type of convention many times in my code in the
I have used the Attach to process function within VS 2008 many times, but
I have used maps many times before, but this is the first time I

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.