Skip to content

Month: November 2011

Get the Current URL of Page with PHP

Posted on November 25, 2011June 29, 2020 by Dzhuneyt
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'];
 	return $url;
}
Posted in Backend DevelopmentLeave a Comment on Get the Current URL of Page with PHP

How to Dynamically Shorten URLs with TinyURL?

Posted on November 15, 2011June 29, 2020 by Dzhuneyt
How to Dynamically Shorten URLs with TinyURL?

The URL shortening service TinyURL.com provides an API for programmatically processing URL shortening requests through your own script. Continue reading “How to Dynamically Shorten URLs with TinyURL?”

Posted in Backend DevelopmentLeave a Comment on How to Dynamically Shorten URLs with TinyURL?

How to Grab Youtube Video Thumbnail?

Posted on November 14, 2011June 29, 2020 by Dzhuneyt

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 Youtube.com. Continue reading “How to Grab Youtube Video Thumbnail?”

Posted in Backend DevelopmentLeave a Comment on How to Grab Youtube Video Thumbnail?

How to Assign the Same Value to Multiple Variables?

Posted on November 13, 2011June 29, 2020 by Dzhuneyt

This is a simple tip but most experienced PHP programmers don’t know that it even exists. Continue reading “How to Assign the Same Value to Multiple Variables?”

Posted in Backend DevelopmentLeave a Comment on How to Assign the Same Value to Multiple Variables?
Dzhuneyt - Software Development

Dzhuneyt

I create web apps that work well everywhere. Currently into: AWS, Serverless, Mobile, SCRUM.

  • GitHub
  • StackOverflow
  • Get in touch

Recent Posts

  • AWS Lambda 250MB limit – how to shrink your Lambda and its node_modules below it?
  • How to display GitHub Actions status badge image in your repository’s README.md?
  • Terraform error “InvalidParameterException: The target group with targetGroupArn arn:aws:xxx does not have an associated load balancer”. How to solve it?
  • Can modern browsers run TypeScript code, without compiling?
  • Why VueJS lost me on the first day I tried it?

Recent Comments

  • Massiws on Using a Samsung M2070 Printer on Ubuntu/Linux?
  • Werner Popken on How to uninstall Swarmpit – the Docker Swarm orchestration tool
  • Laci on Using a Samsung M2070 Printer on Ubuntu/Linux?
  • Fernando M. on Terraform error “InvalidParameterException: The target group with targetGroupArn arn:aws:xxx does not have an associated load balancer”. How to solve it?
  • Juan on Fixing a failing Composer installation: Unable to write keys.dev.pub to: /home/$USER/.composer

Archives

  • May 2020
  • April 2020
  • January 2020
  • October 2019
  • September 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • March 2017
  • March 2016
  • September 2014
  • August 2014
  • June 2014
  • June 2013
  • May 2012
  • March 2012
  • November 2011
  • September 2011
  • August 2011
  • July 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
© 2022 Dzhuneyt