how to save a php file into css file

Mobile
feeds
Welcome Login | Register

how to save a php file into css file
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » PHP Forums
        » » how to save a php file into css file
how to save a php file into css file
Post Description: how to save a php file into css file PHP
Post Tags:
This Post Has Been Viewed 125 Times Since Sun Dec 14, 2008 8:53 pm Author wallpaperama with 0 replies
how to save a php file into css file
Advertise On This Page




if you are reading my post its probably because you want to learn how you can make a css file from a php file. lets say you want to make your css file dynamic so you can change the style sheet according to whatever you want, or even you want to get the values from a database.. well, its possible, i will show you how you can convert a php file into a css style sheet file. the only need you need to do is have a css file and save it php.

for example, lets say i have a style sheet file called style.css and i want to get the value from a php file. well, just open the style.css file and save it as style.php, BUT, just make sure you put this code at the very top of the file:

<?php header("Content-type: text/css"); ?>


thats, it, this will make css file from php. i hope i showed you how to make css file from php, this way you can make php file into css files. isnt that great. with this tutorial, i showed you how to save php file into css. well, if you have any questions about changin a php file into css or css into php, here you go.

you can even take it a step further, buy using .htaccess file






Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : how to save a php file into css file

Comments and replies About how to save a php file into css file
(0) Comments