CSS to PHP Parsing issue

Discussion in 'PHP' started by l3l00, May 13, 2013.

  1. #1
    okay, I am having difficulties here. I converted a css document to php.

    < php
    header("content-type: text/css");
    ? gt;

    and saved as php.

    It works on this page just fine LOCALLY. However I have this php saved on a ftp server.

    http://www.example.com/blah/config/thecssDocument.php

    when I have the source go to the url above, it does not work?
     
    l3l00, May 13, 2013 IP
  2. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Also have in the same folder in the ftp the .css version. That works just fine. they have the same permissions of 755 yet the .php one does not work at all! I know I added the parsing too, because that is what I need to include in this css php file as well as soon as it locates the remote file not the local.
     
    l3l00, May 13, 2013 IP
  3. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #3
    What is the URL for the css file?
     
    ThePHPMaster, May 14, 2013 IP
  4. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    same location as the php version of the file
     
    l3l00, May 14, 2013 IP
  5. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #5
    Have you tried turning on error reporting? This might give you an idea of what it could be. You have not provided much information for any of us to go on. It sounds to me like your server may be miss-configured somewhere.
     
    ryandanielt, May 14, 2013 IP