One of my clients asked me to monitor her site’s uptime. While this script is not yet complete, and it should use a CRON job and a mail() function, here’s how to check for uptime and current HTTP status code: <?php $toCheckURL = 'http://getbutterfly.com/'; // The domain name of the site you want to check […]
Sometimes called the rule of three, this is how you calculate the percentage of a number from another number. For example, you have 2 numbers, 34 and 116. Let’s say 116 is the total number (100%), and we want to find out what percentage is 34 out of 100%. Here’s how: <?php function percentage($amount, $total, […]
I had this assignment the other days where I had to search for an existing string inside a text file – can also be an XML or CSV file – and I ended up searching inside a string (a WordPress option string – get_option('my_huge_string')). Here’s how I did it: <?php $search = 'ciprian popescu'; // […]
What WordPress plugin would you like me to develop on CodeCanyon? The most requested plugin will be developed after one month. All requests will be counted and added here. Deadline: November 2nd, 2013 Requirements: Must be a WordPress plugin, not an existing plugin extension Requested plugins: WordPress Realex Payment Gateway (1) Plugin Guard (1)
The leap from Windows to MacOS was a big one. I still use Windows for programming, but I’m forced to use a Mac where I work. One of the developers told me that “once I go Mac, I never look back”. I’d say “one I go Mac, I go crazy”. MacOS is not suitable for […]
Simple, responsive post slider with pagination (previous/next and page numbers).
Select transition type, easing type, number of slides, timeout and custom category and place the shortcode or the template tag in your post or page.
The plugin is responsive and adapts to any page width, either for desktop or mobile systems.