You are here: Re: How would I dynamically generate a CSS stylesheet using php? « PHP Programming Language « IT news, forums, messages
Re: How would I dynamically generate a CSS stylesheet using php?

Posted by David Gillen on 09/07/07 08:55

Jerry Stuckle said:
> macca wrote:
>> Hi
>>
>> Im trying to think of a way to dynamically generate a stylsheet using
>> php that can be easily updated by a client.
>>
>> My first thought was to generate the stylesheet as an XML document
>> first and then use the XML document to generate the stylesheet, and
>> whenever there is an update in the stylesheet it can be saved as an
>> XML document and parsed in PHP to generate the new stylesheet.
>>
>> Does this sound reasonable?
>>
>
> It's reasonable. Makes parsing easier.
>
Plus the structure of CSS lends itself very nicely to being defined with XML.

You may want to set the appropriate mime type header for a CSS file in your
script though before you start any output.

D.
--
Fermat was right.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация