I'm trying to output my screen.css
file contents with in <style>
tag.
I thought this was the easy part, but relative path not working?
See my code...
<?php printf('<style type="text/css">%s</style>', file_get_contents('css/screen.css?v='.rand()) ); ?>
So in theory, this code is in my index.php
, the relative path should find the css folder local to my php file? But I get this error...
Warning: file_get_contents(./css/screen.css?v=1836240868): failed to open stream: No such file or directory in index.php on line 18
');
See my folder my structure below...
If anyone can give me some advice or help on this that would be great.