Thursday, July 15, 2010

Obtaining Source Code Of Site With PHP

Obtaining source code with php is very simple. We can easily find source code of site with file_get_contents function. We can make this like that:

file_get_contents("address of site");

$site=file_get_contents("http://coderfunctions.blogspot.com");

echo "$site"; //we can show source code of site with code of print code.

But when we take a print of code, scanner will interpret these codes and source codes can’t display on internet page. In order to see this code, you should save these files like txt.

No comments:

Post a Comment