| | #1 |
| Is a... War Room Member Join Date: 2007 Location: In the USA...
Posts: 269
Thanks: 65
Thanked 53 Times in 46 Posts
Blog Entries: 8 |
Quick question: Does a php "snippet" get seen, thus processed, when inside of html comment tags? Such as this: Code: <!-- some text, images, what-not <? php snippet ?> more text, etc... --> Be Well! ECS Dave |
| *Funding for ECS Dave's over-the-top lifestyle is partially provided by Rapid Action Profits Free Rapid Action Profits eGuide! | 2000 PLR Articles for Your Websites! ECS Dave's "Tune of the Week" FREE Paypal Button eBook! | |
| |
| | #2 |
| HyperActive Warrior Join Date: 2010
Posts: 160
Thanks: 11
Thanked 12 Times in 12 Posts
|
No, it doesnt.
|
| |
| | #3 |
| VIP Warrior War Room Member Join Date: 2007 Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
|
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. |
|
The 2nd Amendment, 1789 - The Original Homeland Security. Gun control means never having to say, "I missed you." | |
| |
| | #4 |
| Active Warrior Join Date: 2009
Posts: 54
Thanks: 1
Thanked 7 Times in 7 Posts
|
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.
|
| |
| | #5 |
| The Biggest Advert Online Join Date: 2011 Location: UK
Posts: 102
Thanks: 8
Thanked 12 Times in 12 Posts
|
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... */ ?> |
| Internet doodle | Flag Burning Online | |
| |
| | #6 |
| New Warrior Member War Room Member Join Date: 2007 Location: Sweden
Posts: 17
Thanks: 4
Thanked 3 Times in 3 Posts
|
processed - yes get seen - depends if there is any output such as echo, print etc. |
| | |
| |
| | #7 |
| Is a... War Room Member Join Date: 2007 Location: In the USA...
Posts: 269
Thanks: 65
Thanked 53 Times in 46 Posts
Blog Entries: 8 |
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 |
| *Funding for ECS Dave's over-the-top lifestyle is partially provided by Rapid Action Profits Free Rapid Action Profits eGuide! | 2000 PLR Articles for Your Websites! ECS Dave's "Tune of the Week" FREE Paypal Button eBook! | |
| |
| | #8 |
| Wordpress Master Join Date: 2010 Location: Asia
Posts: 70
Thanks: 1
Thanked 4 Times in 4 Posts
|
no it doesn't , but please use PHP Code: thats called scalable programming rule. |
|
Just Web Developer.
| |
| |
| | #9 | ||
| Is a... War Room Member Join Date: 2007 Location: In the USA...
Posts: 269
Thanks: 65
Thanked 53 Times in 46 Posts
Blog Entries: 8 |
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 | ||
| *Funding for ECS Dave's over-the-top lifestyle is partially provided by Rapid Action Profits Free Rapid Action Profits eGuide! | 2000 PLR Articles for Your Websites! ECS Dave's "Tune of the Week" FREE Paypal Button eBook! | |||
| |
|
| Bookmarks |
| Tags |
| comment, inside, tags |
| |