Usage
How to call it
.htaccess
Here is a rule for my rewriting, any call to a .lcss file is redirected to the script :
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php5
DirectoryIndex test.php5
RewriteEngine on
RewriteRule ^([^\.]+).lcss$ _lesscss.php5?source=$1.css [L,QSA]
Direct call
The direct call is lesscss.php5?source=path_to/my/file.css