Write a PHP script to display source code of a webpage
webpage:-
A web page (or webpage) is a hypertext document provided by a website and displayed to a user in a web browser. A website typically consists of many web pages linked together in a coherent fashion. The name "web page" is a metaphor of paper pages bound together into a book.
code:-
<?php
$source = file('https://www.google.com/');
foreach ($source as $value)
{
echo htmlspecialchars($value)."\n";
}
?>
Post a Comment
If you have any doubts, Please let me know
Thanks!