Easiest but powerful encryption in PHP

Safety concept: Opened Padlock on digital background

For a secured system, most of the data is encrypted in server end and sent to database. And after fetching the data from database, just decrypt before showing in front end. There are lots of procedure to encrypt the data, lots of encryption algorithm out there. But, here we will use a simple encryption method… Continue reading Easiest but powerful encryption in PHP

How to convert hexadecimal color value to RGB value in php

Most of the CMS provides a color picker in admin panel to user to choose a color. And almost all of the color pickers return the color code as hexadecimal mode, e.g. #4EE4D3. So, you can just get the value and set the color in css. For example: [php] body{ background: } [/php] This is… Continue reading How to convert hexadecimal color value to RGB value in php

Get current page url in php

In an application, sometimes we need to get the current page URL in php. I mean, the URL shown in the browser. Here is how you can do it. First, we will declare and use the function as the following: https://gist.github.com/bappi-d-great/bc4037a4896f0dd233e6 Hope you will like it

Published
Categorized as PHP, press, url

How to write dynamic css in a php file in wordpress

It’s always standard to maintain a separate css file for styling, even for dynamic css that is generated by the theme options. Most of the theme developers include this dynamic styles into the header or footer using wp_head or wp_footer hook. How’s about having a totally separate css file for the dynamic styles? It’s pretty… Continue reading How to write dynamic css in a php file in wordpress

Easily display member cards with WPMU DEV Membership

Here’s a simple shortcode snippet to let you easily add a membership card for your site’s members when using WPMU DEV’s Membership plugin. This was requested in the WPMU DEV forums, where we love to help members out with simple and useful custom snippets. WPMU DEV Forum topic: Display Membership Data Print/Mobile The snippet adds a… Continue reading Easily display member cards with WPMU DEV Membership