Includes that Hide the Content

Discussion in 'PHP' started by travoholic, May 14, 2007.

  1. #1
    Hi there, I don't know if this is a PHP question but I'm using includes on PHP pages so I'm guessing...

    I've got a Google map and I want to prevent people from being able to view the source. At the moment I have the meat of the map in an inclue file and I was wondering if there's a way to hide that code for the page?

    Or is there a way to prevent people from being allowed to view the source? How can I protect that part of the code?

    Thanks!
    Kirsty
     
    travoholic, May 14, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, May 14, 2007 IP
  3. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #3
    If your script generating any HTML then it is not possible to hide them.user will see it using their browser's page source option.why do u want to hide them?
     
    coderbari, May 14, 2007 IP
  4. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #4
    you can't protect the html generated by a php script
     
    gibex, May 15, 2007 IP