Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hash (#) symbol for commenting, or . . . ?

Status
Not open for further replies.

Spork52

Programmer
Nov 20, 2007
134
US
Recently a hosting company tech who was trying to fix a server issue changed the code on one of my pages (without permission and without telling me!) from
Code:
session_start()
to
Code:
#session_start()
This change did not produce an error, and the effect seemed to be the same as commenting out the line with //, although I could be wrong about that. I have never seen this before. What, if anything, does the # do?
 
Its a one line shell style comment.

However If your page needed session variables for anything, they won't be available if the session_start() function is commented it out.






----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
it's outrageous that a host can change a file. even more so that it then does not inform the customer. move hosts immediately and name and shame your current host as wide as you can. consult your contract with them to see whether legal action might be a credible threat too. that's shocking.
 
I agree with jpadie- why on earth would a host ever have a reason to even look at your code?! It's surely a breach of etiquette, if not a credible legal breach.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top