Jump to content

getting page scource


dcole.ath.cx
 Share

Recommended Posts

Not exactly sure what you're talking about, so yes and no.If you want to output the PHP source of your PHP script to the web:highlight_fileIf you want to save the HTML source code from some other web page:$html_source = file_get_contents("http://www.w3schools.com/index.php");file_get_contentsIf you want to save the PHP source code from some other web page:well.. no, you can't.

Link to comment
Share on other sites

nvm, I was coming to say I got it...I was wanting the cache of pages for backup and other purposes...Like having an over flow server but only DHTML or the output of php...or having history for simple people I host, some new people write over there HTML with out thinking...any way I used:

<?php$read = fopen("http://dcole.ath.cx/index.php", "r");while ($line = fgets ( $read , 999999 )) {print $line; }fclose($read);?>that was the basic test script... thanks for the help though

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...