There are situations when you have to use some values stored in DB or values being calculated in PHP script based upon different conditions in the java-script and css code. This can be achieved by writing the inline js/css code directly inside the php script. But in WordPress, this can be done very easily with … continue reading →
If your PHP installation has been done somewhere else other than the C:\ drive, then “pear install” command may throw errors. Example: Here in my case, the xampp has been installed into E:\ drive and the “pear install” throws error.
E:\xampp\php>pear install PHP_CodeSniffer
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-upd
ate pear.php.net" to update
downloading PHP_CodeSniffer-2.0.0.tgz ...
Starting to download PHP_CodeSniffer-2.0.0.tgz (448,559 bytes)
..........done: 448,559 bytes
ERROR: failed to mkdir C:\php\pear\tests\PHP_CodeSniffer\CodeSniffer\Core\File
Solution: I get into the “pear” directory and checked config values set for different … continue reading →
The other day, I had some problem setting up latest WordPress coding standard for PHP CodeSniffer on a Windows machine. It was throwing some errors/warnings like the below. There were some others, but eventually we had fixed some of those. However the WP coding standards were not getting listed in phpcs.
Warning: file_put_contents(C:\php\pear\data/PHP_CodeSniffer/CodeSniffer.conf): failed to open stream: No such file or directory in C:\xampp\php\pear\PHP\CodeSniffer.php on line 2166
Here are the … continue reading →
Recently, I have been asked to help install and setup XDebug along with Webgrind in a Mac OS X system using SSH on one of my colleague’s system. All of this setup were done remotely from another system. Here are the steps/commands for achieving the same. Steps for installing Xdebug: Get the information about installed … continue reading →
For last few days, I have been working on a WordPress project where I am creating a set of APIs to be consumed by mobile apps. While writing these REST APIs I have tried to make the things work faster. While checking the REQUEST/RESPONSE time, I found that the WordPress initialization is taking much time … continue reading →
Questions those come into mind when someone switches from Windows to Mac OS X for web development and wants to compare files: Which editor has support for file diff or file compare functionalities on Mac OS X ? Which is the best tool for file comparison while developing on Mac OS X ? How to … continue reading →
The other day, I was searching for some ways to compare two files(one from production and another from the local development of the same file) in Sublime Text. I found that there is no default tool to compare two files, thats why I installed “FileDiffs“, a package which provides the above needed functionality. What this … continue reading →
When a developer starts WordPress development and tries to make the process easier and faster, generally he searches for best tools and various boiler plates which can alleviate the manual task of starting the development from scratch. WordPress Gear (WPgear.org) is a website which lists out lots of useful tools those are free and GPL(OpenSource). … continue reading →
In a recent blog, Google has announced that TLS, SSL enabled websites(https://) will be getting added advantages in SEO ranking. In order to make the Internet more safe and secure, Google has started using HTTPS as a ranking signal, that means if you site is HTTPS enabled you will get ranked higher. However they have … continue reading →