Reputation: 689
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
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
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