Web Coding Tips

Web code to download a file

Need to download a file when a website user clicks on something: …a button? …a hypertext link …perhaps an image? First time I needed the code for a file download, an internet search was required. But now you don’t have to look for the solution. You see, the code needed for this action is presented in this video.

Loading

Share This:
FacebooktwitterredditpinterestlinkedintumblrFacebooktwitterredditpinterestlinkedintumblr

GMT to Local Time

The time() function always returns Greenwich Mean Time (GMT). Unless your in the UK, a different time reference is needed. This video provides some simple code to make the conversion. Use this code snippet again and again. Anytime you need to get the time and date…in any time-zone.

Loading

Share This:
FacebooktwitterredditpinterestlinkedintumblrFacebooktwitterredditpinterestlinkedintumblr