I\'m doing a style.php CSS file so I can use some dynamic variables in the CSS within a Wordpress installation:
To access the wordpress functions you need to include the following lines on top of your style.php file.
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
The first line tells wordpress not to run theme related processes and the second line runs the wordpress engine. After this point you have access to the wordpress functions and the global variables.