By default, most Apache installations will only interpret PHP code in actual .php files. The PHP processor won't process other file types without reconfiguring Apache (or whatever webserver you're running), and they'll -- by-default -- be rendered to the browser as whatever the default is for that file type.
However, from PHP, you can generate any type of content. Most people new to PHP think of HTML when they think about what the PHP will generate, but that's only the beginning:
<?php header('Content-Type:text/css'); ?>
<? /* php code defining $row2 */ ?>
.large {
width: 175px;
height: 175px;
position: absolute;
border-radius: 100%;
box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85),
0 0 7px 7px rgba(0, 0, 0, 0.25),
inset 0 0 20px 2px rgba(0, 0, 0, 0.25);
background: url('http://www.tahara.es/images/LargeImage/<?php echo $row2[imageLarge]; ?>.jpg') no-repeat;
}
Using this technique, you can generate HTML, JavaScript, CSS, XML, JSON, and other types of content.
Now, when injecting this server-generated CSS into your webpage, the link tag would look like this:
<link rel="stylesheet" type="text/css" href="myDynamicCSS.php" />
Note that the extension is .php, not .css, and the content sent to the browser as a final product is "text/css".