I have this snippet of code which grabs the source of an SVG image and adds it to the HTML:
<?php echo file_get_contents("assets/images/lightening.svg"); ?>
I want to add a function root(); (that I already have working) which to the beginning path which tells it where the root of the site it (I'm hoisting the site in multiple locations).
What I want is a version of this that works:
<?php echo file_get_contents("'root();'.assets/images/lightening.svg"); ?>
Any help would greatly be appreciated. Thanks.