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. Sycrid

    Sycrid Active Member

    Messages:
    124
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #41
    Ridiculously old thread, but I just stumbled onto this whilst looking into something, and there's some very good points made. However the original posters intention may not have been to copy the code, it could have been to establish a way into the website (also the reason I stumbled onto this).

    Great if you want to replicate, terrible if you want to discover vulnerabilities. I say this because people code in different ways.
    SEMrush
     
    Sycrid, Apr 9, 2015 IP
    SEMrush
  2. hruz

    hruz Greenhorn

    Messages:
    12
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    23
    Digital Goods:
    1
    #42
    ... it has all been said before!

    The best way to get at the code, butter up the owner of the site and ask for a copy, or offer to pay some money for it ...
     
    hruz, May 21, 2015 IP
  3. Dominic Ceraso

    Dominic Ceraso Member

    Messages:
    52
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #43
    OR since it is a server side script the only way to access the source code pre-processed would be to disable php from apache itself. If you shut down php then the server will not process the code it will simply show the source code when you browse the particular file. So how would you go about this you ask? If you need to ask then you probably won't be able to do this. It is an advanced hacker type project if thats what you would want to call it and you need to know advanced server management and/or programming. As many people have mentioned in this post, if you are going to put that much effort into getting the code - why not save yourself the time/hassle and either a) develop the site yourself or b) pay somebody to do it for you / ask the owner to buy a copy of it.

    Best,
     
    Dominic Ceraso, May 21, 2015 IP
  4. digi_media

    digi_media Active Member

    Messages:
    99
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    68
    #44
    PHP is a server side scripting language, hence cant be seen by client. You only get the HTML view of the codes by clicking on 'view page source'.
     
    digi_media, May 27, 2015 IP
  5. ashokdhan

    ashokdhan Well-Known Member

    Messages:
    262
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    160
    Digital Goods:
    2
    Articles:
    1
    #45
    It is impossible, shall we know why you need this trick. better way if you are not much comfort with PHP and want to make some script or pages in PHP ask forums people can help you but do not try theft method...
     
    ashokdhan, Jul 4, 2015 IP
  6. ibt

    ibt Member

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #46
    PHP is server side scripting language . you can't view sometimes from source code . you will search php source code inside docs folder
     
    ibt, Jul 5, 2015 IP
  7. NetStar

    NetStar Notable Member

    Messages:
    2,290
    Likes Received:
    472
    Best Answers:
    21
    Trophy Points:
    215
    #47
    Just become a PHP programmer and you will be able to implement 99% of what you see online.
     
    NetStar, Jul 5, 2015 IP
  8. mohammed9895

    mohammed9895 Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #48
    no way to take the php source code.
    all the best
     
    mohammed9895, Jul 22, 2015 IP
  9. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #49
    wow! this is old...
     
    creativeGenius, Aug 2, 2015 IP
  10. Pflash

    Pflash Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #50
    its possible but only if the script is vulnerable to LFI or RFI attacks.
     
    Pflash, Aug 2, 2015 IP
  11. Jeremy Benson

    Jeremy Benson Active Member

    Messages:
    347
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    73
    #51
    Unless you're getting code from your own site wouldn't this be considered hacking? I would think this would be the type of thing web developers would got to great lengths protecting themselves from. Setting up passwords, and using htaccess isn't done for nothing..
     
    Jeremy Benson, Aug 4, 2015 IP
  12. Lalit Goyal

    Lalit Goyal Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #52
    Its impossible without FTP.
     
    Lalit Goyal, Aug 14, 2015 IP
Thread Status:
Not open for further replies.