Is there any way to get full source code with images,scripts who is used in page… file_get_contents give only elements without images,script… What I need is when catch some URL (file_get_contents / echo $URL ) to render page like iframe doing. (with images,scripts etc) Is this possible and is there any funcion for that…
<?php
$URL='www.example.com';
$data= file_get_contents($url);
echo $data;
?>
I don’t think there exists a built in function for that. But you can write it, it shouldn’t be too difficult.