peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Installing Css-Crush #36

Closed Paykoman closed 12 years ago

Paykoman commented 12 years ago

Hi, I'm a newbie and I tried to setup css-crush but I failed. I really want to use it so I'll be very grateful if you help me. I only know html, css and some js language.

Well this is what I've done so far: 1) I've downloaded the css-crush and copied the whole folder inside my site. 2) I've renamed the folder with "CssCrushFolder". 3) I've added the code in the head section of my index.html file, just like this:

<head>
<?php 
require_once 'CssCrushFolder/CssCrush.php'; 
$compiled_file = csscrush_file( '/css/layout.css' );
?>
<link rel="stylesheet" type="text/css" href="<?php echo $compiled_file; ?>" media="all" />
</head>

(My css layout is in a folder called "css" )

I've uploaded the files to my site and it doesnt work (I know my site support php). I hope someone can help me to solve this, I really want to use css-crush.

It would help me a lot if someone post a video or a demo page to show me how to install this.

Thanks in advance.

peteboere commented 12 years ago

Hi,

It sounds like you might need to brush up on some basic PHP first.

I'd recommend you install a basic PHP development environment on your own machine (e.g. Look for WAMP if you're using Windows, or MAMP if you're using a Mac) and try to get a feel for how PHP works a little.

It will be much easier if you can experiment locally, and try and get it working that way.