Learning C
Learning C

Reputation: 689

Check string in url and write html according

What language can be used to check a string or a link then write html accordingly? This is while a user loads the page. I need this so I can check the link if it .mp4 or .flv before I load the video player. If it has the included video format then it will load the code for the player if not it will display a message instead.

Upvotes: 1

Views: 44

Answers (2)

Alex W
Alex W

Reputation: 38243

"if not it will display a message instead."

What is normally done in pure HTML is something like this:

<embed src="video.flv">
We're sorry, but your browser does not have the necessary plug-ins to display FLV video files.
</embed>

The error message is always there, but if the video actually loads then it is covered up.

Upvotes: 2

C0deH4cker
C0deH4cker

Reputation: 4065

PHP, perl, python, asp, asp.net, and many other languages can be used. By far the most common server side language is PHP. It makes server-side coding relatively easy.

Upvotes: 2

Related Questions