How to hide javascripts in php page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somaskarthic
    New Member
    • Aug 2006
    • 60

    How to hide javascripts in php page

    Hi

    In my PHP page while viewing the page source , it shows all the javascript codings and php comments. I don't want these comments and javascripts visible . Is there any methods to hide the javascripts , php comments and html comments ?

    It is most urgent. Please post your replies.

    Thanks in advance

    somaskarthic
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Actually not. However, if you store your Javascript in an external file and include that with [HTML]<script src="scripts/styleswitch.js" type="text/javascript"></script>[/HTML]
    it will not be visible.
    PHP code will never been shown.

    Ronald :cool:

    Comment

    Working...