Is it invisible?

Discussion in 'PHP' started by sbongo, Jul 22, 2006.

  1. #1
    Hi,im curious that are there any tools that some people can used to see my php codes of my web pages?
    Thanks!
     
    sbongo, Jul 22, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No, for as long as your webserver is configured correctly they will all be parsed accordingly and hence be transparent.

    I was once successfull in getting some site's PHP files because they made the stupid mistake of renaming their old files index.php.old - which are then downloadable. So unless you screw up, there's no way of getting the contents. Hacking into the server is probably easiest if they really want the code.
     
    T0PS3O, Jul 22, 2006 IP
  3. sbongo

    sbongo Peon

    Messages:
    986
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for shedding some light.:)
     
    sbongo, Jul 22, 2006 IP
  4. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I've seen a lot of people name files config.inc and so forth, most servers won't parse it if accessed independant from the page it is included from. It is much better practice to use config.inc.php, yourclass.class.php, etc.
     
    DrMalloc, Jul 22, 2006 IP
  5. digitalhaven

    digitalhaven Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So does that mean you can't just go to the source option in IE and see the pHP code of a webpage?
     
    digitalhaven, Jul 22, 2006 IP
  6. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No, you'll never see php in source code of a web page in your browser. What you see in browser is HTML, which is created from PHP. The browser interprets PHP and render HTML.
     
    Monty, Jul 22, 2006 IP
  7. digitalhaven

    digitalhaven Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for that monty, I'm trying to learn as much about PHP as possible at the moment, I am thinking about buying some scripts and want to be sure I understand how it works.
     
    digitalhaven, Jul 22, 2006 IP
  8. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you want to learn PHP, there is no better way that to make your own scripts rather than to buy them. Especially to understand how it works. Takes more time but it's more rewarding.
     
    Monty, Jul 22, 2006 IP
  9. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #9
    coderlinks, Jul 23, 2006 IP