Connecting the dots…

Thoughts on Web Development, Scalability and Application Architecture

Tag: php

Xdebug – Remote Debugging

As a follow up from my last post Xdebug – Installation and customization this post is about configuring xdebug and a php editor (eclipse PDT) in this case to be able to do interactive debugging. Having worked as a Java Developer for quite some time, this was always something that I found missing in php [...]

Writing a php command line based app using Console_CommandLine

I am currently writing a PHP app which had to have a command line interface. I came across this excellent library in PEAR Console_CommandLine. Its core functionality is very useful out of the box and in case you need to do something really fancy, there is nothing stopping you from extending it further. Here is [...]

[Doctrine_Parser_Exception] Fail-some error message!

If your precious evening hacking time has been wasted by this useless error message: rp@devbox:trunk$ php symfony –trace doctrine:build-all-reload –no-confirmation >> doctrine dropping databases >> doctrine Successfully dropped database f…octrine" named "secret_project" >> doctrine creating databases >> doctrine Successfully created database f…octrine" named "secret_project" >> doctrine generating model classes [Doctrine_Parser_Exception] Unable to parse string: Unable [...]

Enabling HTTPS support in curl installed through MacPorts on OSX

While doing development just noticed that if you have installed php with curl support using macports it does’nt install ssl support in curl by default which is quite frustrating. Especially I just spent 30mins of my life trying to debugging what had gone wrong. This is what you would get if you have a similar [...]

using svn for development in symfony

The recent project that I am working on for a client has taught me more about svn than I ever did because of the complex nature of the product. It has been going through a proper product development cycle which involves quick iteration of features and sometimes, such dramatic changes that can make the entire [...]

Looping through values using reference

There are times where you need to loop through a large array and manipulate the items in the array. This is what you usually do. List through items Create a temp array which contains the modified values Exit the loop and re-assign the new array back to the actual array. This works fine, other than [...]

SimpleXML and parsing namespaced attribute

SimpleXML is really good, this is especially more from the heart as its coming from someone who spent a decent amount of time using DOM API to parse xml in Java, though XPath was mostly a saviour. I usually get stuck when I there is an edge case or parsing some data format that I [...]

Creating clean SEO urls in symfony

Being the symfony fan that I am, I have decided to start documenting some of the features I think are quite neat in the framework. So starting today, here’s a quick quite to writing a Search Engine Optimized URL. So I am working on a project where users will be posting university details and I [...]