DEANO.ME

Code Snippets / Functions

 

We bought a new WHM/cPanel server recently and once setup we started getting emails about a suspicious process, this instantly caused panic as you might expect! The suspicious process was apparently called entropychat. Not sure what this was I started searching the internet to try and figure out what it was, where it was and […]

 

I’ve seen allot of developers requesting the ability to resize a iFrame so that the content in the iFrame fits in the frame without any scroll bars, but also to adjust the height dynamically so that is always fits the height of the internal content, which is useful for iFrames who’s content changes often or […]

 

UPDATED 03/01/2017 – Fixed a bug in the code, sorry! Some people still prefer to use www in their websites, however using www. is no longer a standard for websites and was invented when the internet first started as an indicator that you was requesting a website, which was especially useful as most of the […]

 

Allot of outdated websites still use www. in their urls, however did you know this is very outdated behaviour invented way back when the internet first started? The whole idea of using www. was invented so that anyone seeing a URL would instantly know it was a URL as www stands for World Wide Web. […]

 

In August 2014 I started an article on improving the speed and performance of your OpenCart store by improving your OpenCart database indexing, shockingly it appears OpenCart did not set required indexes that are vital for larger OpenCart stores. MySQL uses indexes to speed up queries, every join or search using an index is cached […]

 

Recently I came across a semi-large server having severe difficulty with stability, after a short investigation it became apparent that the server was suffering whenever the WHM backup process (cpbackup) was working to backup the server. Unfortunately the backup module of WHM is a very handy and vital tool to retaining monthly, weekly or even […]

 

If you have your own development server like us that are accessible across the internet using public IP or a domain name you may be having problems where somehow Google and other search engines find your development server and starts indexing it! This is very frustrating when you actually do not want projects being leaked […]

 

Sometimes you want to display a page of your site in a convenient popup using AJAX, the problem with this is in the popup your obviously not going to want your website header, footer, menu bar and etc and would need to return just the content for the popup. Well with PHP this is easy, […]

 

WooCommerce is a great plugin for WordPress, enabling you to turn a standard WordPress install into a fully functional eCommerce shop. However I found there is no options to modify the default sorting options provided in WooCommerce categories, however after some digging I found that you can easily remove options from WooCommerce with some simple […]

 

PHP Sessions are great, they allow us to easily store information about a client without that client having ANY access to that data. In fact all they have is a “key” which links up to a session file stored on the server which PHP accesses behind the scenes. This makes sessions very secure for us, […]

+1
Tweet
Share
Share
Stumble
Pin
Email
Shares 0