I'm trying to list the size of JS files on a website by adding website URL using PHP language.
But it can't read links that contain something like ../
I'm trying to list the size of JS files on a website by adding website URL using PHP language.
But it can't read links that contain something like ../
try this it works for me well
file_get_contents(__DIR__ . '/../../../test.js');
__DIR__ is a useful magic constant.