1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to get source code of PHP page

Discussion in 'PHP' started by rohuhottie, Oct 11, 2008.

Thread Status:
Not open for further replies.
  1. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #21
    there were ways to crash the php interpreter
     
    happpy, Oct 11, 2008 IP
  2. !Unreal

    !Unreal Well-Known Member

    Messages:
    1,671
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    165
    #22
    Its impossible. The server parses the PHP into HTML before its sent to the browser so its not possible.

    Sometimes PHP stops working and you can view the PHP code. You could try overloading PHP to see if it crashes lol :D
     
    !Unreal, Oct 12, 2008 IP
  3. firmaterra

    firmaterra Peon

    Messages:
    756
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #23
    haha right on. Espicially number four. :p
     
    firmaterra, Oct 12, 2008 IP
  4. magiceyes

    magiceyes Member

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #24
    I think it is impossible ..
     
    magiceyes, Oct 12, 2008 IP
  5. RRWH

    RRWH Active Member

    Messages:
    821
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    70
    #25
    $ should have been in BOLD - well said!
     
    RRWH, Oct 12, 2008 IP
  6. Cruelio.com

    Cruelio.com Peon

    Messages:
    300
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #26
    I smell a thief!
     
    Cruelio.com, Oct 12, 2008 IP
  7. nihangshah

    nihangshah Prominent Member

    Messages:
    5,536
    Likes Received:
    271
    Best Answers:
    3
    Trophy Points:
    395
    #27
    I don't think the source codes of server programming languages like PHP and ASP, can be viewed directly in the browser.

    The code is processed on the server and the result is sent to the client, so there no way to see it.
     
    nihangshah, Oct 12, 2008 IP
  8. raoraj

    raoraj Well-Known Member

    Messages:
    849
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #28
    Warning: Don't try this at your pc
     
    raoraj, Oct 13, 2008 IP
  9. luckyman

    luckyman Banned

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #29
    don;t you just right click view page source
     
    luckyman, Oct 13, 2008 IP
  10. viisingh14

    viisingh14 Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #30
    So easy... Just use a browser that doesn't support php. It will automatically start downloading that php file because it doesn't know how to open it.

    BEST OF LUCK
     
    viisingh14, Jan 30, 2013 IP
  11. muffet

    muffet Active Member

    Messages:
    720
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    68
    #31
    You will not be able to make a clone of a site if you don't have FTP or WHM access to download the php files or script. You won't be able to view the PHP code in Firefox using Firebug. I suggest the following book if you want to actually learn PHP programming:

    http://www.amazon.com/Beginning-PHP..._8?ie=UTF8&qid=1359572591&sr=8-8&keywords=PHP

    You should use the site as inspiration but don't copy or replicated it exactly.
     
    muffet, Jan 30, 2013 IP
  12. Callixtus

    Callixtus Greenhorn

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    13
    #32
    It is possible, but only if the php pages want you to, f.example with a wrong ending.. Try to make your own php script and save it as index.phps, then the php is not working and you can see the source code :)
    But ofc, it is impossible to see others php scripts unless you can hack their file names ^^
     
    Callixtus, Feb 1, 2013 IP
  13. edduvs

    edduvs Well-Known Member

    Messages:
    394
    Likes Received:
    31
    Best Answers:
    3
    Trophy Points:
    160
    #33

    @viisingh14, There are no such browsers that support PHP. I remember you that PHP means Pre-HyperText Processor whici derivates from (notice the HyperText) HTML (Hyper Text Markup LANGUAGE).

    Now what that means is, PHP has the ability to process data and render it into HTML. Thats why it is called Pre-HyperText.

    @rohuhottie, the answer to your question is quite simple. Getting the sourcecode of a php file implies automatically either hacking the server via Exploits (there's no acronym in this), RFI (Remote File Inclusion), CSRF (Cross Site Request Forgery), XSS (Cross Site Scripting - which mostly works with JavaScript, not enough to see a PHP file). Though, RFI would be a better option, but, it's old, so all the new scripts that are globally used like phpMyAdmin (which I remember of version 2.1x) that were vulnerable to this , are vulnerable no more because , obviously, people could exploit them and could get a file manager via your SQL manager. Thats the reason they are currently developing the 3.5 version (which is stable by the way). You could keep informed of 0day exploits at milw0rm or things like that , but I personally suggest you start learning PHP and just clone the script on yourself or just hire some of us to do it.

    Hope it helped and I'm sorry if your hopes vanished reading through all these posts.
    Nonetheless, http://php.net is awaiting with a really big documentation.
     
    edduvs, Feb 2, 2013 IP
  14. viisingh14

    viisingh14 Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #34
    Ohhhh... Yess
     
    viisingh14, Feb 3, 2013 IP
  15. mikehussy

    mikehussy Greenhorn

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #35
    are you hacker?
     
    mikehussy, Feb 5, 2013 IP
  16. ggiindia

    ggiindia Greenhorn

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #36
    You
    You can't get the full code of any page because you can only see this page coding can't copied...If you want to see the source code then you can do CTRL+U and see the code of that page.....
     
    ggiindia, Feb 5, 2013 IP
  17. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #37
    OMG some people realy think you can download a live running php script? LOL

    PHP is as said many times before in this topic sending the processed data to the user, even if the browser doesn't support PHP (as it is weird coz its just HTML) it will NOT save the original SOURCE CODE of the PHP file itselve, only the data the php parser sends to your IP adres (browser)

    More info @ http://www.php.net/manual/en/intro-whatcando.php
     
    EricBruggema, Feb 5, 2013 IP
  18. Pod2G

    Pod2G Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #38
    It can't be done. PHP is for backend only
     
    Pod2G, Feb 6, 2013 IP
  19. pippo foo

    pippo foo Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #39
    I agree with you :)
     
    pippo foo, Apr 3, 2014 IP
  20. - jeff -

    - jeff - Member

    Messages:
    63
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    38
    #40
    PHP runs all the code on the server and then returns the output to the browser. It's a great language to learn though... quite easy and fun.
     
    - jeff -, Apr 4, 2014 IP
Thread Status:
Not open for further replies.