Connecting the dots...
Thoughts on Web Development, Scalability and Application Architecture
  • Home
  • About Rajat Pandit
  • Contact
Browse: Home / php

php

Writing a php command line based app using Console_CommandLine

By rp on October 17, 2009

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 [...]

Posted in Web Development | Tagged command line, Console_CommandLine, pear, php | Leave a response

[Doctrine_Parser_Exception] Fail-some error message!

[Doctrine_Parser_Exception] Fail-some error message!

By rp on August 23, 2009

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: [...]

Posted in Web Development | Tagged doctrine, jwage, orm, php, Symfony | 1 Response

Enabling HTTPS support in curl installed through MacPorts on OSX

By rp on March 31, 2009

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 problem:

% [...]

Posted in Web Development | Tagged Clean, dependencies, development, OSX, php, protocol, variants | 5 Responses

using svn for development in symfony

using svn for development in symfony

By rp on February 8, 2009

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 [...]

Posted in Web Development | Tagged bug fixes, development, directory structure, dramatic changes, empty directory, initial directory, iteration, nature of the product, php, product development cycle, repos, secret project, svn, Symfony | 3 Responses

Looping through values using reference

By rp on January 25, 2009

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 there are some problems [...]

Posted in Web Development | Tagged foreach, optimization, php, Symfony | Leave a response

SimpleXML and parsing namespaced attribute

SimpleXML and parsing namespaced attribute

By rp on January 25, 2009

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 [...]

Posted in Web Development | Tagged namespaced, php, simplexml, xml | 1 Response

Creating clean SEO urls in symfony

By rp on June 18, 2008

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 wanted [...]

Posted in Web Development | Tagged Clean, php, routing, SEO, Symfony, YML | 2 Responses

Search

Sponsored Links

Symfony Experts

Categories

  • Getting Things Done (RSS) (3)
  • SEO (RSS) (1)
  • Web Development (RSS) (86)

Recent Comments

  • zakaria on Skype audio playback and capture problem on ubuntu 8.10
  • Allen on sfDoctrineGuardPlugin: Signup, Validation and Profile
  • Susan on Creating utf-8 tables in symfony 1.4 /doctrine 1.2
  • Tynisha Cooper on FOWA 2008
  • Affordable Web Development on Making footer stick to the bottom of the page

Tags

accessiblity Add new tag apache 2 array bot build process Clean CSS dependencies development doctrine email gmail googl hack irc Javascript JeOS leopard linux mac macfusion mail namespaced OSX pear perl php propel protocol quit now search SEO simplexml ssh sshfs svn Symfony synchronization Ubuntu upgrade validation variants Yahoo! yahoo search

Copyright © 2010 Connecting the dots....