The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> PHP to generate CSS
CodeKing
post Aug 6 2007, 07:17 PM
Post #1


Advanced Member
****

Group: Members
Posts: 175
Joined: 12-September 06
Member No.: 118



I'm using PHP to generate a CSS stylesheet. The only problem is that the browser thinks it's a PHP document. I know there's some function that tells the browser that the document is actually a different type of file. What is this? And what's the type of document for CSS? ("texst/css" posibly?)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
pandy
post Aug 6 2007, 09:40 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,734
Joined: 9-August 06
Member No.: 6



QUOTE
I'm using PHP to generate a CSS stylesheet. The only problem is that the browser thinks it's a PHP document. I know there's some function that tells the browser that the document is actually a different type of file. What is this?

Same as when you generate a HTML page.
http://php.net/header

QUOTE
And what's the type of document for CSS? ("texst/css" posibly?)

Yes.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
CodeKing   PHP to generate CSS   Aug 6 2007, 07:17 PM
pandy   Same as when you generate a HTML page. http://ph...   Aug 6 2007, 09:40 PM


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th May 2024 - 03:07 AM