As you may know Notepad++ is my preferred development tool for PHP, and two months back I found FunctionList plugin that shows list of function in a opened PHP file, and it increased my productivity almost immediately. Only drawback was that it showed just function list and not variables. And today I found this neat […]
Category Archives: php
Installing PEAR and PHPUnit on WAMP and Windows 7
In the project that i am currently working on, we decided to use PHPUnit for doing our unit testing, and i found that it was not a straight forward thing to install that I had thought it would be. I had to start by installing Pear, and as soon as i type ‘go-pear’ in command […]
Simple Way To Add Global Exception Handling In CodeIgniter
I am working on a project where we needed to capture exceptions at a global level instead of doing it at every step as they were not critical, but important for us to know. The idea was that whenever such an exception occur on production we should send an email to developers mailing list so […]
CodeIgniter 2.0 Is Baking
Just when I was loosing all hopes about CodeIgniter, yesterday EllisLab announced about their move to assembla and mercurial, in that there was a small but significant news about CodeIgniter 2.0. A quick look into the change log revealed PHP 4 support is deprecated. Features new to 2.0.0 may not be support PHP 4, and […]
How to get Latitude/Longitude from an address (or Geocoding ) using PHP
While Google’s documents for maps API does good job in showing how to get lat/long from an address in JavaScript they do not really show any example of doing the same with PHP. So to make you life simple here is a small script in PHP that does that. $geocode=file_get_contents(‘http://maps.google.com/maps/api/geocode/json?address=573/1,+Jangli+Maharaj+Road,+Deccan+Gymkhana,+Pune,+Maharashtra,+India&sensor=false’); $output= json_decode($geocode); […]
Where is MySQL Gone Away?
Last Sunday I got to work on a very interesting problem in WordPress which I initially thought could be solved in like 5 mins, but alas it took me almost 7 hours before I found and fixed the problem. Let me describe the problem, I was running a simple xml parsing script whose task was […]
Integrating With Twitter API In CodeIgniter
I needed to integrate Twitter API in one of my web applications which uses CodeIgniter framework. As their is no direct library available in CI for twitter integration, at first go this might look very difficult, but it is really simple. Here is how you can do it.. First download the Twitter class […]
Debugging PHP using Xdebug and Notepad++ : Part I
I am sure all of you have used ‘echo’ and ‘print_r’ to debug PHP. We all know that this way debugging is hard and you need to remember to remove them from production server. Well, thanks to xdebug you can now debug, and you don’t need expensive or blotted IDE for that, just plain and […]
PHPCamp in Pune Mirror
News about PHP and PHPCamp was published in today’s Pune Mirror. Their is just one mistake though, MySpace[:( ] is not in PHP. It’s my mistake, I conveyed the wrong information while disscussing[i still can’t figure out from where ‘myspace is in php’ came to my mind] with reporter, stupid me 🙁 . I regret […]
Easy File Uploading Solution For PHP
Uploading files/images is a task that is required in almost all web applications. While uploading file is a very simple task, still lot of beginners in PHP get stuck in this step. So in this post I decided to share the functions I learned while I was a beginner, and I still continue to use […]