Script for viewing the code

Discussion in 'PHP' started by weknowtheworld, Nov 30, 2006.

  1. #1
    Does anyone have a script using which i can extract the code of a php/asp file instead of the executed html code...
     
    weknowtheworld, Nov 30, 2006 IP
  2. adsblog

    adsblog Active Member

    Messages:
    659
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    70
    #2
    all php codes was compiled at server and convert to html codes after convert , send it to client .
    you can't extract php codes .
     
    adsblog, Nov 30, 2006 IP
  3. trevlar

    trevlar Peon

    Messages:
    65
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If it's going on the same server, you could use the highlight_file function.

    
    <?php
    
    echo highlight_file("./filename.php");
    
    ?>
    PHP:
     
    trevlar, Nov 30, 2006 IP
  4. Fl1p

    Fl1p Active Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Fl1p, Nov 30, 2006 IP