Add the extension .phpto CSS and use the PHP code to define this. Just use standard PHP tags.
For instance:
body
{
background-image:url('<?php echo $currentImagePath ?>');
}
$currentImagePath - , ( ) PHP.
$currentImagePath = $_SERVER['DOCUMENT_ROOT'] . "/css/images/" . "month" . (date("n") - 1) . "_" . date("Y") . ".png";
:
<?php
header("Content-type: text/css");
$currentImagePath = $_SERVER['DOCUMENT_ROOT'] . "/css/images/" . "month" . (date("n") - 1) . "_" . date("Y") . ".png";
?>
body
{
background-image:url('<?php echo $currentImagePath ?>');
}
, , - .