Jump to content

Recommended Posts

i am fairly new to php, but not new to programming.

so with that, here is my question.

 

many times, i see source codes containing "<!--[sometext or argument]-->

 

i found out, that these codes having certain codes on the website itself like a media player.

but in source code, it simply stays <!--[sometext or argument]-->

 

now i do not know if this is related to php, since i am no genius and i do not know every langauge used to develop a website.

 

so, my question is, is this a special function from php that replaces the actual content on the webpage but not in the source code

OR

is this another programming langauge that allow do have these kind of functions.

 

any decent response is appriciated

Link to comment
https://forums.phpfreaks.com/topic/157197-solved-a-function-that-is-unknown/
Share on other sites

These are nothing to do with PHP, these are simply HTML comments. There may be times when PHP software outputs them, but they'll usually only serve as comments to make the source clearer.

 

There is another use for them though, which does follow a similar syntax to the code you provided; IE conditionals. For example:

 

<!--[if IE 5]>This is internet explorer 5<![endif]-->

 

These tags allow you to create content just for [specific versions of] Internet Explorer. Most commonly used to include an extra stylesheet specific to IE's needs..

 

ok thanks for the answer, but my question isnt solved yet!

 

ok, so lets go back the site that uses media player. it was windows media player btw.

 

now i searched their complete website for any code that involves the media player component.

No results.

 

how could they add or hide such code?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.