Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

text in code commented out


Recommended Posts

In some of my files I like to add some comments for my information only. I have seen in many of the contributions they make comments but is commented out. For example:


/** begin text notes **/

/** end text notes **/


//Begin text

//End text


I was using this method: /** begin of text **/

/** End of text *//


But then viewing page, that piece of code is on the page. So how does one know which method to use and when?





Link to comment
Share on other sites

Probably depends if it is contained within start and end php tags




/* this is comment

and so is this




Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile


Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.


For links mentioned in old answers that are no longer here follow this link Useful Threads.


If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

<TR><TD><!-- text text //--></TD></TR>

You're confusing PHP comments with HTML comments...


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites

I am aware that if one wants to comment text out in PHP and html is done different. I was having trouble within the HTML scetion. After several tries, I was abble to solve it. Did as below:


<!-- /** Begin Text Text Text ***/ //-->


<!-- /** End Text Text Text ***/ //-->





Link to comment
Share on other sites


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

  • Create New...