Jump to content

Hide Comments In Php?


skaterdav85
 Share

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.?>

Edited by dzhax
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...