Dynamic CSS with PHP goes against good practices?
I need to change the background image of the header of a page according to her article. I thought of writing CSS inside a PHP file for this, but I do not know if it is considered a good practice ... or worse, a bad piastic.
NOTE: I also thought of doing this using AJAX for as soon as the page loads, it accesses the database, picks up the image name and changes in CSS.