Javascipt and Source code question.

Discussion in 'JavaScript' started by LaPoChE, Jul 21, 2006.

  1. #1
    Is there a way I can view another websites source code using javascript? if not, can anyone let me know of a way this can be done?

    thanks
     
    LaPoChE, Jul 21, 2006 IP
  2. Boby

    Boby Peon

    Messages:
    207
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do it with php :)

    $content = @ file_get_contents ('http://www.domain.com');
    PHP:
    Boby
     
    Boby, Jul 21, 2006 IP
  3. PwrUps

    PwrUps Peon

    Messages:
    377
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can't you also use fopen and fread?
     
    PwrUps, Jul 21, 2006 IP
  4. LaPoChE

    LaPoChE Active Member

    Messages:
    198
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    thanks, I will try with PHP :)
     
    LaPoChE, Jul 21, 2006 IP