Posts

  • WooCommerce Theme Overriding

    Introduction For every task there are many good and bad ways to do that WooCommerce theming also fall under this prey like directly editing the WooCommerce template files In one fine day WooCommerce may release a new version, you unintentionally update the WooCommerce plugin which results in replace of your beautiful custom shop page into default template So to avoid this we have to override our WooCommerce template in our theme directory Let’s we see it in detail Detect Template to Override To detect which template your current page renders you can place this snippet in your activated theme’s functions.php…

    read more

  • Create Executable Images

    Introduction In this tutorial you will learn how to create executable image file Using the image you can perform any programmatic logic behind displaying an image The image created using PHP may not look unusual except the file extension will be .php We will overcome this drawback with Apache’s htaccess file with rewrite rules to masquerade our PHP file as image file Prerequisite Though you can use any image library like ImageMagick for this masquerading technique but we are planned to use GD image library GD is an open source graphics library GD library ‘s PHP official documentation link: GD…

    read more

  • Inside the PHP

    Introduction Ever wonder what’s inside the PHP. How every language construct, function works. How optional parameters handled. Why certain functions behave weird and want know their inner working. That’s why I bring this tutorial to how easily navigate to the function declaration and understand it easily. Since PHP is opensource you can see all source code easily in github (clone of official git repository) but quickly finding the desired function in github is cumbersome but don’t worry we will find some alternative solution in this tutorial The PHP compiler/interpreter which is written in C and C++ which uses Lexical analyser,…

    read more