In the below code, I've tried using the file get contents command to get the website content and output it, and but its showing a blank page when I run it.
<html>
<?php
$site = "http://facebook.com";
echo $file_get_contents[$site];
?>
<html>
After this, I wanted to use
header('X-Frame-Options: GOFORIT');
or something similar to edit the header but the first code to display the webpage wasn't working so what would be the mistake?
This may work but i guess it requires some sort of SSL or something else, see more about file_get_contents because
As it a function not an array as you used in your code.