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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:08:24+00:00 2026-06-15T12:08:24+00:00

I am using php to generate a css file, declaring a header like: <?php

  • 0

I am using php to generate a css file, declaring a header like:

<?php
header("Content-type: text/css; charset: UTF-8"); 
?>

and passing the url from index.php like:

<link href="http://www.site.com/css.php?style_profile=2" media="screen" rel="stylesheet" type="text/css" />

I can’t get this file to validate from the w3c css validator because it doesn’t recognize the file type. This is the error I keep getting:

Unknown error org.w3c.www.http.HttpInvalidValueException: Invalid content type.

Is there any way to get this to validate without manually pasting the css data? If not, is there any other validation service that will recognize a css.php file (or one with get vars attached, if that is the issue causing the error)? I’d really like to be able to validate by link and not have to cut and paste the css for every single page on my site.

  • 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-15T12:08:25+00:00Added an answer on June 15, 2026 at 12:08 pm

    I don’t know if this will resolve your problem (unable to test right now), but it is something that I noticed:

    According to the W3 spec, your PHP header is incorrect, and it should read charset=utf-8.

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

Sidebar

Related Questions

I'm using a PHP script to generate an excel CSV file from a result-set
I'm using a PHP file to output an XML Document. I'm using a CSS
I'm using PHP to generate feeds, which is working perfectly fine on my local
I actually want to generate random password using PHP uniqid() function $randomPassword = uniqid();
I am using CherryPy to generate and parse data for a php webpage, but
Im using http://www.ashberg.de/php-barcode/ scripts to generate a barcode. I now need to import the
I am using the following code to generate excel from sql through php.this is
I'm using a compination of actionscript's getPixel and php's imagecreatetruecolor and imagesetpixel to generate
I'm creating a JSON object like tags = {jon:[beef,pork],jane:[chicken,lamb]}; which was generated using php
I'm looking to create on-the-fly tree diagrams using PHP, HTML, and CSS. Mock-up below:

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.