Get the Current URL of Page with PHP

This simple snippet of code will help you get the full URL of the currently viewed page. function getUrl(){ $domain = $_SERVER['HTTP_HOST']; $url = "http://" . $domain . $_SERVER['REQUEST_URI']; retur...

How to Grab Youtube Video Thumbnail?

Getting the thumbnail of a Youtube video through it’s ID is not that hard. You just have to transform the URL a little bit to get a high quality JPG file, used as a main thumbnail through Youtub...