Author: ican

  • CodeIgniter is the fastest PHP framework

    Ekerete Akpan, from AVNet Labs, released the results of his small experiment to measure the performance of four PHP frameworks.He used requests/sec as a performance yardstick, what it tells is that number of request your webserver can handle, if you use one of these frameworks.php-framework-comparison-benchmarksAnd the result of all his test says that between Zend Framework,CakePHP and CodeIgniter, CodeIgniter is the fastest one.This test validates my choice for going with CI as framework, instead of Zend.For detailed analysis checkout the original post.Update: Even Rasmus Lerdorf prefers CI over all the frameworks avilable.

  • PHP Sucks

    It seems like their is a new Cool wave flowing in the developer community which involves finding reasons to say PHP sucks.

    Everyone worth his salt is trying to get ahead in finding new reasons to put it down.

    So I thought why not I compile some of the good articles from bunch of these people.

    Here is my favorite quote from one such article:

    So here’s my problem, based on my limited experience with PHP (deploying a couple of free apps to do this and that, and debugging a site for a non-technical friend here and there): all the PHP code I’ve seen in that experience has been messy, unmaintainable crap. Spaghetti SQL wrapped in spaghetti PHP wrapped in spaghetti HTML, replicated in slightly-varying form in dozens of places.
    By Tim Bray

    (more…)

  • PHPCamp In Pune

    A bunch of PHP enthusiast(including me) are organizing PHPCamp in Pune on 20th September 2008.

    What is PHPCamp?

    Well PHPCamp aims to be ad hoc gathering of PHP developers who are interested in talking and listening PHP.

    It also provides an opportunity for freshers/newbies who are starting  out in the world of web development  to judge for themselves if PHP is cool or not?

    On 20th September we intend to do lot’s of talking about PHP, what is good, and what is bad in PHP, how to change/overcome limitations  imposed by PHP. We will talk about frameworks, cms, coding practices and many more things.

    (more…)

  • Firefox 3: Download Day Results

    Finally Firefox managed to get 8.3 million downloads in 24 hours.

    This is when they were hoping for just 5 million.

    Firefox 3: Download Day Results

    Above picture was taken by John Resig. Let’s see if Firefox 3 can get into the Guinness books of world record.

    By the way if you downloaded  Firefox on download day then get your participation certificate from Mozilla and show off.

    check  http://downloadcounter.sj.mozilla.com/ for final numbers.

    UPDATE:Firefox set a Guinness World Record for the most software downloads in 24 hours, with total 8,002,530 downloads.

  • Firefox Download Day Ends on 18th June

    I can see many of you are disappointed that Firefox 3 downloads does not actually starts on 17th June.

    I am hearing people complaining about start time of the event. What most of you forgetting is that it is a 24 hours event. That means for most of the world it will actually end on 18th June.

    As you already know that Firefox 3 Downloads starts at 10 AM PDT, check out your local time. This means for India it is 10.30 PM on 17th June.

    If it is late for you please don’t fear, you don’t have to download it at exact this moment, you have full 24 hrs to do so. This means that the download day will finish at 10.30 PM on 18th June, check out your local time.

    So just relax on 17th when you wake on 18th download it and you will contribute to Mozilla foundations aim to make it to Gunniess book of world records.

    Thus even if the event might be US centric and they have the rights, after all maximum pledges are from US, at last count it was 244,798. This is a huge difference compared to 20k-30k from other Asian countries.

    I will be downloading Firefox3 tomorrow, will you?

    update 1:0 AM 18 June : managed to download and install firefox3(FF3), sad firebug does not work, tried to get to firebug website but it is down… grrh…

    update 7:30 AM 18 June : finally firbug updated, everything working like charm.

  • Reading/Parsing Excel Spreadsheet using PHP

    This is second article in the series of common PHP problems that a beginner faces. You can check the first article Warning: header data already sent.

    In this tutorial we will see, how we can easily parse or read an Excel sheet and display the parsed data to user. Even though we are going to display the output, the other extension of this technique is that we can parse an excel sheet filled with data, in set format, and convert it into SQL statement and insert the data into database. Now this is an easy task on an windows based server, to do the same thing in Linux we need to use some other libraries.

    This tutorial assumes that you know PHP.

    (more…)

  • FireFox 3 Release on 17th

    Firefox 3 will be released on coming Tuesday, 17 june 2008.

    Check out the news on developer site.

    So what are you waiting for get ready, and if you have not yet pledged your support do so now and help set a world record .

    Download Day 2008

  • Bloggers Lunch In Pune

    A bunch of bloggers from pune met on saturday to talk about blogging over lunch at Green Park hotel.

    As always the event was organised by barcamp gang aka Tarun, Rohit and Priyank.

     

    Get more details from better bloggers

    1. Pune blogger’s lunch at green park by Priyank
    2. Pune blogger’s meet by Bhavya
    3. Bloggers Lunch Pune by Tarun

    We also got covered by Pune Mirror

     

    Pune blogger lunch meet

    More pictures at Tarun’s Picassa web album

  • 5 key skills of a successful web application developer

    Most probably you will be knowing about all these skills already, it is common sense, still I have found so many developers who just know just one server side language(usually java or .net) and then they think themselves as superman/superwoman.

    In web application development, that is just one thing. You need to know about lot more things before you can consider yourself successful.

    So, if you know them already that’s good, you don’t need to read any further otherwise continue reading to know why each of these skills are important for you(the web developer).

    Here are the skills

    1. the structure : HTML
    2. the presentation: CSS
    3. the behavior: JavaScript

    With these three skill you have ability to become the super cool static website developer or a front end developer

    1. the database: SQL
    2. the server-side language : PHP( other options are JSP/ASP/PERL/RUBY choice is yours, as all the fight for best happens here)

    These two skill will make you a web developer.

    All five of these skills will make you a most prized web developer, in your organization.

    (more…)

  • Warning: headers already sent

    When I was learning PHP their were few things that had stumped me, I would usually take it hours to solve them if not days. Now I have grown up, and I realize that those were the basic things that should have been mentioned in the PHP manual, but they were not.

    Today I am going to write about one such annoying problem that almost always comes in the way of PHP developers at least once.

    Warning: Cannot modify header information – headers already sent by (output started at C:wampwwwaktesterror.php:2) in C:wampwwwaktesterror.php on line 4

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at C:wampwwwaktesterror.php:2) in C:wampwwwaktesterror.php on line 3

    This is “header already sent” warning message, that we get whenever we try to redirect a user to some other page or location, when we try to set a cookie or if we try to start a session. Once we get this warning we know that page won’t redirect, session won’t start or cookie’s sent to user, So we can’t even ignore them.

    Before we see the solutions to resolve this warning let’s see the source code of the error.php file that I used to generate this error.

    
    <?php
    session_start();
    header("location:http://localhost/");
    ?>

    Please notice an empty line before “<?php”, this is the cause of errors in his page.

    (more…)