Jump to content


Question....


2 replies to this topic

#1 Liquid Viper

    Young Padawan

  • Members
  • Pip
  • 8 posts

Posted 05 October 2005 - 06:44 PM

I'm wondering how I would do something like this: Write a PHP script that grabs the complete HTML source of a website (just a signle page) and displays it exactly as it normally would, how would this have to happen...?

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 05 October 2005 - 07:02 PM

Hmm... i wonder... http://php.net/manua...et-contents.php
or http://php.net/manua...ction.fopen.php

Chance's are you won't get just the HTML, but it'll get the entire content of a file. I doubt you'll find a pre-made script (or function) to get HTML and HTML only, but ya never know.

#3 HaloprO

    Requires Armed Escort

  • Members
  • PipPip
  • 310 posts
  • Gender:Male
  • Location:California, USA

Posted 05 October 2005 - 08:55 PM

Are you looking for something like this?
<?php
echo highlight_string(file_get_contents('http://www.google.com/'), true);
?>






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users