2

On the site: http://www.agricultureupdate.com/invest/new/index.php

I have used PHP to generate certain colors etc.

It works fine on all desktop laptops tested but it does load the css files (just loads html) on a galaxy note running android 4.04. The strange thing is it works on my own galaxy note running 4.1.

Any ideas on what could be causing this?

Thanks

9
  • 1
    What part doesn't work on 4.04? Colors, layout, etc? Commented Sep 12, 2012 at 13:58
  • 1
    "it does not work" <= elaborate please. Commented Sep 12, 2012 at 14:01
  • Sorry, the CSS files appear to not load at all. So the pure html is shown with no styles Commented Sep 12, 2012 at 14:02
  • 2
    Verify that the CSS files are being requested by looking at your web server logs. When PHP generates the CSS, is it sending a content-type: text/css header? Commented Sep 12, 2012 at 14:05
  • 1
    I have <?php header("Content-type: text/css; charset: UTF-8"); require_once('../config.php'); ?> at the top of the file so it returns as CSS file Commented Sep 12, 2012 at 14:06

1 Answer 1

2

Since you're parsing the CSS with PHP, why not just pull it straight into the template page

<style>
<?php require_once('path to php/css file'); ?>
</style>

The error is probably about the file types and headers, so this should work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.