Q:

Need help understanding a piece of code in php

<?php 
if($sitedown==true) {
echo <<<MESSAGE
<div style="width: 700px; height: 328px; background: transparent url({${constant(BASE_PATH)}}/images/down.jpg) top left no-repeat;">
<p style="font-size: 20px; font-weight: bold; color: #666; font-family: tahoma, arial; margin: 0px; padding: 100px 10px 0px 200px;">
</p>
</div>
}
?>

what exactly does url({${constant(BASE_PATH)}} do? BASE_PATH is a php config variable. 

A:

url(something) is CSS for "This is a URL"
${constant(BASE_PATH)} should give you a string (which should be a URL) which gets interpolated into the string literal.

