Sep
09
Symfony or Zend Framework
My initial plan for this review was to install both frameworks and test both against each other. But after spending a few hours trying to get zend framework to install correctly, I gave up with it...
A PHP based framework should install fairly easy - I will give it another try when I get some spare time (it is a bit sparse at the moment with new baby liam)
Symfony however I have fallen for, every part of the setup is brilliant: from url routing to unit testing.
Initially I had a few problems following there tutorial (it defaults to use Propel ORM when Doctrine seems much better)
I'm still working out how to use most of the features, but that is mainly because there is so much of it.
I am using Crawler Catcher as my main project with symfony (as it needs a rewrite already). With the symfony framework and unit testing which is built in. All the old bugs have already been fixed.
More to come in the near future

posted by
Mark Willis
Sep
06
Add symfony code insight to NuSphere PhpED
This is one problem I faced with symfony. Although it's very easy to add "some" code insight to your project:

Just go to project properties - then add your project root (or PEAR install off symfony) and code insight will be added. Thanks to phpleo

posted by
Mark Willis
Sep
01
Symfony MVC outlook
I have been playing with the Zend framework for the past week or so, There will be a post in the next few days reviewing it. I am also looking at the Symfony framework this week and will post a comparison on both frameworks within the next week or two.
Symfony provides an architecture, components and tools for developers to build complex web applications faster. Choosing symfony allows you to release your applications earlier, host and scale them without problem.

posted by
Mark Willis
Aug
25
Remote development – Happier staff
If you had the choice would you commute to your works office everyday (maybe 1-2 hours each way) to do web development or would you prefer to stay at home spend an extra few hours with your family? Would you turn down / negotiate terms on a job proposal if you always work from home but a prospective employer doesn't agree with remote employees?
Read the rest of this entry »

posted by
Mark Willis
Aug
16
ip2long vs INET_ATON
Whilst I was making the IP range function for my crawler catcher, I stumbled upon the problem of signed and unsigned integers for ip address (ip2long, INET_ATON) and back again (long2ip, INET_NTOA) using PHP and MySQL respectively. This caused me a problem when I used ip2long to sort ip addresses by order, and received negative numbers (-16843010) this gave me some funny results when using php's sort() function. I was getting 1 IP out of a range appearing 3/4 numbers out of place.
Upon futher inspection I found out that php uses signed integers (positive and negative numbers). This messes with the array sort functon. After I changed to unsigned integers, my ip ranges worked perfectly.
MySQL also won't produce an IP from a negative integer, and just returns false:
I've provided some demonstrations, and a php function to produce an unsigned long from an IP address.
Read the rest of this entry »

posted by
Mark Willis
After reading this, from a fellow PHP Blogger I strongly agree with what he says - PHP has given alot to the web community and I think has helped push Open Source software to the masses, and helps more companies and big players steer away from licensed software.
Also with being an Open Source piece of software and freely available to the masses there are thousands of people that have more then likely been in the same problem as yourself if your stuck coding some odd one - off code.

posted by
Mark Willis