As the title suggest i am trying to find all CSS files on a website (for later use i will find all image urls in each of the CSS files on the server).
Now ive tried the following:
$url_to_test = $_GET['url'];
$file = file_get_contents($url_to_test);
$doc = new DOMDocument();
$doc->loadHTML($file);
$domcss = $doc->getElementsByTagName('css');
However the array domcss turned out empty (for a site i know has alot of css files).
So my question is how do i find all css files loaded on a given page?