php https

Check PHP https Request

Here we have a simple and effective PHP function that checks whether or not HTTPS (via SSL) is used for the current request. function check_https() { if ((!empty($_SERVER) && $_SERVER !== 'off')...

Hide Youtube Related Videos Trick

You can actually turn off the related video feature in YouTube embeds, putting the power back in your hands. It’s pretty important you do this if you want to keep your audience focused on what you’ve crafted ra...
Change Wordpress Login Logo

Change WordPress Login Logo

To change wordpress login logo to your own, you will need to change the CSS styles associated with this heading: <h1><a href="http://wordpress.org/" title="Powered by WordPress">Your Site Name<...
jQuery Remove Element

jQuery Remove Element By Id

Remove the set of matched elements from the DOM. Similar to .empty(), the .remove() method takes elements out of the DOM. Use .remove() when you want to remove the element itself, as well as everything insid...
Current Year in PHP

Current Year in PHP

You can use either date or strftime. In this case I'd say it doesn't matter as a year is a year, no matter what (unless there's a locale that formats the year differently?) For example Current Year in PHP: ...