Why file_get_contents is not woking on same domain, but https/facebook.com is success

Don’t know what exactly you’re trying to do, but if your website is attempting to generate a PDF file, it is indeed being blocked by the security system, as PDF files are not allowed here:

9 Likes