Is this possible to download?

Discussion in 'PHP' started by kojakfilth, Sep 26, 2008.

  1. #1
    kojakfilth, Sep 26, 2008 IP
  2. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Even if you download it using a downloader you will get the HTML source only (Just like when you view the page using your browser)
     
    ads2help, Sep 26, 2008 IP
  3. kojakfilth

    kojakfilth Notable Member

    Messages:
    3,000
    Likes Received:
    213
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Yes i know. I am asking if theres a way to download it as a .php file not html.

    Thanks
     
    kojakfilth, Sep 26, 2008 IP
  4. scriptdance

    scriptdance Active Member

    Messages:
    340
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    it is impossible.
     
    scriptdance, Sep 26, 2008 IP
  5. h0ly lag

    h0ly lag Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No, it is not possible. The only way you can get the full PHP page is via FTP.
     
    h0ly lag, Sep 26, 2008 IP
  6. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #6
    Yeah without accessing ftp can't download any files with using browser :)
     
    kind_of_the_cash, Sep 26, 2008 IP
  7. newtrading

    newtrading Peon

    Messages:
    23
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nah you got point on that. How scary if you can download paypal.com in php :D
     
    newtrading, Sep 26, 2008 IP
  8. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Do you mean is it possible to just click on these files and have them download (ie the site is not your own and you want to download the php code?)
     
    JAY6390, Sep 27, 2008 IP
  9. Resco

    Resco Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #9
    No just read the topic, it is not possible through your browser!
     
    Resco, Sep 27, 2008 IP
  10. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The webserver interprets the script on the requests.

    Browser -> Request -> Server -> Read Request -> Send to CGI or module -> Receive data from PHP -> Send to user

    So anyone who doesn't understand why, they see why.
     
    NatalicWolf, Sep 27, 2008 IP
  11. TG_Kenneth

    TG_Kenneth Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    No you cannot download it.....it is 100% impossible
     
    TG_Kenneth, Sep 27, 2008 IP
  12. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #12
    If only instance when you may be able to read the source code of the files is when you are the server admin(admin has access to user files) or the server fails to send the file to the PHP parser and instead sends it as a text file! There may be other few rare causes too but IDK.
     
    rohan_shenoy, Sep 28, 2008 IP
  13. SilverLeaf

    SilverLeaf Peon

    Messages:
    136
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I wish I could download any websites .PHP files in a click, too bad it can't happen. :(.
    If you could download the .PHP files, you would need a database or a .SQL file, right?

    How would you get that?

    ~ Silverleaf
     
    SilverLeaf, Sep 28, 2008 IP
  14. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #14
    Basically you're chances are extremely slim. Why would you want to download someone else's PHP? It's better to learn rather than steal
     
    Grit., Sep 28, 2008 IP
  15. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Well everyone has said its 100% impossible to download these files...and you are all wrong...you can, you jus have to hope the server doesn't have the php installed in apache ;). I don't understand why people ask if you can download the php sourcecode all the time. The whole idea of the files being processed server side should give an indication that its not possible to do. Hell, the whole idea is to stop people getting the source of it. Imagine if you found someones db config file :rolleyes:
     
    JAY6390, Sep 28, 2008 IP
  16. VirgilM

    VirgilM Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    It is impossible as long as the server runs as it should. To download the source code you have to make a different request to the server through ftp and you have to have the right access login data
     
    VirgilM, Sep 28, 2008 IP
  17. khu84

    khu84 Active Member

    Messages:
    441
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #17
    Only using the FTP and with proper login username and passwords otherwise yes its impossible to do that via http request. :)
     
    khu84, Sep 28, 2008 IP
  18. conductr

    conductr Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    True. However, I think that is way over their head. :cool:
     
    conductr, Sep 28, 2008 IP