get view source of a website with php

W
Description

How to get view source of a website with php

Shared by: rizbwp
-
Stats
views:
7
posted:
6/9/2012
language:
English
pages:
1
Document Sample
scope of work template
							<?php

        // get source of the page http://www.google.com
        $content = file_get_contents("http://www.google.com");

        // convert html tags to entities
        $source = htmlentities($content);

        // print the view source
        echo $source;

?>

						
Related docs
Other docs by rizbwp
get view source of a website with php
Views: 9  |  Downloads: 0
How to print a statement with php?
Views: 6  |  Downloads: 1
day php get current day
Views: 8  |  Downloads: 0
Generate random number with php
Views: 5  |  Downloads: 0
How to replace string with php
Views: 11  |  Downloads: 0
Get current year with php?
Views: 5  |  Downloads: 0
array
Views: 19  |  Downloads: 0