![]() |
Inside comment tags... Quick question: Does a php "snippet" get seen, thus processed, when inside of html comment tags? Such as this: Code: <!-- Be Well! ECS Dave |
Re: Inside comment tags... No, it doesnt. |
Re: Inside comment tags... Yes, it most certainly does. The output, if any, won't be shown in the browser window because it's within the HTML comment tags, but can be seen in the page source. |
Re: Inside comment tags... If that php is parsed by the server, then there will be nothing there. If the php is not parsed, it will show up inside the comment but not visible in the browser. |
Re: Inside comment tags... It's almost best in all circumstances to use PHP comments. Why would you want to send this stuff to all users anyway. <?php /* some text, images, what-not php snippet more text, etc... */ ?> |
Re: Inside comment tags... processed - yes get seen - depends if there is any output such as echo, print etc. |
Re: Inside comment tags... Thanks everyone! I had thought that "hiding" something in the html comment tags would not only hide what was between them, but not process it. I see I was mistaken, and have since fixed the issue that drove me to ask... Be Well! ECS Dave |
Re: Inside comment tags... no it doesn't , but please use PHP Code: thats called scalable programming rule. |
Re: Inside comment tags... Quote:
Quote:
The one line "snippet" was calling a function, that I didn't want called, so I simply deleted it, instead of leaving it in the commented html code on the page. Be Well! ECS Dave |
| All times are GMT -6. The time now is 09:19 PM. |