Dynamic CSS with PHP - Conclusion
(Page 4 of 4 )
PHP can be used to generate more than just HTML content... it can generate PDFs and images, so why not style sheets?
We've looked at how PHP can help keep related styles together in one document as opposed to having separate files cluttering our directories. We've also seen how JavaScript can communicate back to the server so PHP can create a custom style sheet on-the-fly. Yet these are only two examples.
I've once seen an instance where PHP and CSS was used to help smooth the themeing process for an application; the programmer used a separate include file to pair keys and values and then filtered them through the dynamic style sheet.
Really, your own ingenuity is your only limit when it comes to using PHP.
About The AuthorTimothy Boronczyk lives in Syracuse, NY, where he works as an E-Services Coordinator for a local credit union. He has a background in elementary education, over 5 years experience in web design and has written tutorials on web design, PHP, Ruby, XML and various other topics. His hobbies include photography and composing music.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |