view php source for any website

Discussion in 'PHP' started by pareshprince, Oct 2, 2009.

  1. #1
    hi friends

    i want to need software, script, addons any thing for view php source code for any website.

    is this possible to view php source code for any website?

    Thanks
     
    pareshprince, Oct 2, 2009 IP
  2. orionoreo

    orionoreo Peon

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no... because all php source is executed at the server before it is delivered to you

    so you would need a program to access the server with the file... aka not allowed
     
    orionoreo, Oct 3, 2009 IP
  3. phprightnow

    phprightnow Peon

    Messages:
    296
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There's no way to view server-side scripting, as it's executed on the server and outputted as the script sees fit. The only way to see these files would be to have access to the designated server itself.
     
    phprightnow, Oct 3, 2009 IP
  4. ahsan11223

    ahsan11223 Active Member

    Messages:
    725
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #4
    its not possible but i h ope if you are yourself a server administrator then you can view others php coding..
     
    ahsan11223, Oct 3, 2009 IP
  5. young coder

    young coder Peon

    Messages:
    302
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No because it's impossible
     
    young coder, Oct 3, 2009 IP
  6. Earn at Home

    Earn at Home Peon

    Messages:
    240
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    no you cannot do this
     
    Earn at Home, Oct 3, 2009 IP
  7. lmao

    lmao Guest

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    its not possible mate as what you see in your browser is the interpreted code by php engine so you wont see any php source .

    Only possible in one case if short open tag are not enabled on php and the coder used the php code inside those short open tag like <? ?> then only you can see that part in view source coz that part wont be interpreted by php engine and will be delivered as it is
     
    lmao, Oct 3, 2009 IP
  8. renownedmedia

    renownedmedia Well-Known Member

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #8
    It's impossible. If it were possible I would have to change careers!

    It is possible to hack some websites using Remote File Includes, in which case you could execute a custom PHP script to download all the files on a server. But, this isn't ethical or, possibly, legal.
     
    renownedmedia, Oct 3, 2009 IP
  9. goliath

    goliath Active Member

    Messages:
    308
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #9
    Only a broken server would do that, anyhow. Remote include should get you the output of the parsed script.
     
    goliath, Oct 3, 2009 IP
  10. Mr Happy

    Mr Happy Greenhorn

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    20
    #10
    As everyone said it's not possible and rightly so. If you could view the source code of php scripts they you could have access to all sorts of information like admin passwords, database passwords, etc stored in a config or simillar file. You'd be able to cause total cahos and basically bring the internet to it's knees, online banking, purchasing, money transfers, private details, everything could be hacked.
     
    Mr Happy, Oct 5, 2009 IP
  11. sn1

    sn1 Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    is impossible because you only can get the html
     
    sn1, Oct 5, 2009 IP
  12. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Maybe if the server turned off/uninstalled PHP for some reason, your script would be there for everyone and anyone to see, although you could probably sue them if they ever did do something like that.
     
    wd_2k6, Oct 5, 2009 IP
  13. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #13
    I'm afraid what you desire is nigh on impossible. Although, an alternative would be to look for a similar script (potentially a free download). Just google for free PHP scripts, and then use the source available for inspiration?
     
    Grit., Oct 5, 2009 IP
  14. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #14
    if this is possible, you wont see any unique websites at all, eveything will be a clone of facebook, google, twitter and just about anything
     
    creativeGenius, Oct 5, 2009 IP