I used file_get_contents function to get content from url and echo it to screen. Here is code.
$data=file_get_contents($_REQUEST['url_name']);
$atIndex = strpos($data,"</head>");
$data = substr_replace($data, '<script type="text/javascript" src="https://tag-test-super-star.c9users.io/server/js/jquery.min.js"></script><script type="text/javascript" src="https://tag-test-super-star.c9users.io/server/js/index.js"></script>', $atIndex, 0);
echo $data;
But if we do this images, styles will not be affect to screen because some urls use local links.
For example like this <img src="img/img.png">
I know if we want to display image correctly we have to add url before img/img.png.
But how can i do it for whole site with php or javascript or something else?