Jump to content

Hide Comments In Php?


skaterdav85

Recommended Posts

I have a bunch of comments in my code, but i dont want them to visible to the user if they read the source code. My comments are about the sql queries themselves, so that wouldnt be good for hackers. Is there any way to hide all your comments in php?

Link to comment
Share on other sites

I have a bunch of comments in my code, but i dont want them to visible to the user if they read the source code. My comments are about the sql queries themselves, so that wouldnt be good for hackers. Is there any way to hide all your comments in php?
if you look up the source code in the browser php does not show up you should be fine. so as long as your comments are in php wrappers it will not show
<?php//comments here will not be show up in source code on the browser view.//unless they actually get to the the .php file, they will not be able to see this.?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...