PHP: Hypertext Preprocessor (PHP), was introduced in 1998 by Andi Gutmans, Zeev Suraski and Rasmus Lerdorf (the original PHP/FI creator). In less than 10 years, there are over 20 million internet domains hosted on servers with PHP installed (source: Wiki ). We will talk to our PHP experts to see why they think PHP rocks
Jeff Moore: Cofounder of the WACT project, Jeff is a columnist for PHP Architect. His Blog .
Hasin Hayder: A zend certified Engineer, Hasin maintains the largest PHP user group PHPExperts in Bangladesh. He is a author of "Object Oriented Programming with PHP5", "Smarty PHP Template Programming and Applications" and "Wordpress Complete". His Story Telling
Vidyut Luther: A PHP guy since 1998, Vidyut is currently an independent consultant working primarily with LAMP. He uses his PHPCult as a pulpit to preach to the people who visit his site.
Ed Finkler: a member of the PHP Security Consortium. Ed conceived and built PHPsecinfo to audit the security settings in PHP.INI or PHP environment. Ed works at CERIAS, the Center for Education and Research in Information Assurance and Security at Purdue University. His place.
Matthew Turland: the first PHP 5 Zend Certified Engineer in the state of Louisiana. Very active, in the open source community, he is currently working on a service module for the Zend framework, a Remember the Milk API. His "Web Scraping" article has been been published in PHP Architect Dec 2007 issue. Visit his "I Should be Coding".
Richard Heyes: builds high traffic sites using PHP (LAMP). His high quality code is showcased in PHPGuru, and Yes, they are a free download. He is an active Pear developer.
Martynas Jusevicius: Based in Copenhagen, Martynas, a MSc student, is the author of DIY framework, open-source lightweight web application framework based on object-oriented PHP 5, MySQL, and XSLT. Visit his blog
Q: If you were to start afresh, would you learn PHP again?
Jeff Moore: Yes, I would learn PHP again. PHP has a large base of readily available internet applications. There are open source projects with large support communities and features, such as WordPress and Drupal. There are more CMSes than you can shake a stick at. There are excellent, commercially supported applications such as SugarCRM and vBulletin. Wikipedia is one of the largest sites on the web and its MediaWiki code is freely available for use or for study. Chances are that if there is type of web application that you want to use, someone has already written something in PHP. While you don't need to know PHP to install and use these applications, knowing a bit of PHP allows you to get more out of this valuable resource. Knowing PHP is useful, even if you aren't a full-time PHP programmer.
Hasin Hayder: Yes (probably) - When I will see that Yahoo, facebook and some other big web sites (plus applications) are built on PHP, I will definitely give it a go.
Vidyut Luther: Definitely, but I'd also study more comp sci before I got into programming again.
Ed Finkler: Definitely. PHP is a very powerful, very productive, easy-to-learn language that is well-suited for development of web applications.
Matthew Turland: Most definitely! It's proven such an integral part of my experiences as a developer (hobbyist and professional) that I don't think I could imagine what my general perspective would be like without it.
Richard Heyes: Absolutely. It would be harder naturally, since when I started, shortly before the advent of PHP 4.0.0, since there's a lot lot more to PHP now. But it's by far the predominant language for creating web sites/applications. There are others of course, but they don't have the flexibility or "speed-to-market" that PHP has.
Martynas Jusevicius: I would learn PHP again. But I'm also glad that it wasn't the first language I learned. There many people who start with PHP without knowing the basics of programming and are producing spaghetti code, and who think that building a web app is as simple as throwing some scripts that they found on Google together. I like the object-orientedness of Java and ease of deployment of PHP, so I'm using PHP 5 but trying to make my code look more like Java.
Q: What do you think is the most important feature of the PHP language?
Jeff Moore: There is no one single feature. PHP has a set of features that work well together, they include garbage collection, dynamic typing and a low level of abstraction, which make the language accessible. This accessibility along with cheap and widely available hosting is an important enabler of PHP's open source, community-driven application base. PHP is a special purpose language, so use it for your web front ends, take your other stuff elsewhere. Lacking a deployment or compile stage makes for fast feedback cycles and easy development. A large community means support and documentation. The maturity and size of the PHP community mean that all of PHP's faults are well known and their solutions are as well.
Hasin Hayder: The simplicity of PHP is the most interesting feature I think. What you can do using some elite languages ( for ex, Java) in months, you can do it in PHP in a week.
Vidyut Luther: The community.
Ed Finkler: It's impossible for me to pick a single feature -- the usefulness of a language is usually defined by its full set of features, not one or two. I would probably list these as PHP's most significant features *to me*:
* Ability to embed within HTML docs and tight integration with Apache - "time to productivity" is my shorter because of this
* Very solid out of the box support for MySQL and sqlite, with a variety of other DBs supported
* Powerful, flexible arrays
* The ability to support both procedural and object-oriented approaches well
Matthew Turland: Its duck typing system. Many languages I've worked with, and in fact most of the languages I now work with professionally on a day-to-day basis, are strongly typed. While this does have some advantages, there are capabilities offered by weakly typed languages that can decrease the amount of implementation work required by allowing for higher levels of abstraction.
Richard Heyes: Its ability to integrate with other platforms. Currently you would have a hard job making a decent or large site from PHP alone. It could be done, but it would be wholly unrealistic to assume this is always the case.
Martynas Jusevicius: I don't know if that can be called a feature, but I would say the ease of deployment again. Which resulted in popularity. Other than that, PHP is not really special as a programming language. PHP 5 brought some nice improvements though -- object-oriented model, better XML and database support.
Q. What PHP forums would you recommend?
Jeff Moore: SitePoint and the PHP Dev Network are the only two I visit with regularity.
Hasin Hayder: PHPBuilder and PHPTalk. Also Sitepoint and PHPArchitect forum is quite good.
Vidyut Luther: Google, and php.net, and irc (irc.freenode.net). The mailing list is very good as well. I'd also subscribe to the feeds at planet-php.net
Ed Finkler: I don't read any forums, per se. I do recommend the following resources, though:
Matthew Turland: If the word "forum" is being used as a general term here, I highly recommend the ##php and #phpc channels on the Freenode IRC network. As far as forums go by the traditional internet definition, I can't speak to any in particular, as I rarely have to resort to using them in order to engage in discussions, ask questions, or get feedback on ideas.
Richard Heyes: I don't read any forums due to a lack of time. Though I do read and sometimes post to the php-general list. My view isn't always appreciated by the more "hardcore" people though... :)
Martynas Jusevicius: sitepoint.com I probably. I'm not active in some general PHP forums. I use a local forum and a mail group, as well as those of a specific tool or library, such as Propel ORM or XSLT. I find out a lot of stuff following blogs, and on Google of course.
Q. What book would you recommend to a newbie?
Jeff Moore: The online manual for PHP is pretty good. I don't really pay much attention to newbie PHP books. I'd recommend
- Pro PHP Security,
- Essential PHP Security,
- php|architect's guide to PHP Security.
- PHP in Action
- php|architect's Guide to PHP Design Patterns for more advanced PHP programmers.
I'd also recommend php|architect magazine.
Hasin Hayder: Power PHP Programming for sure. And beside That, PHP Unleashed, Learning PHP5 is very good.
Vidyut Luther: All the books from Dale Carnegie, most programmers need serious help with their social skills, and need to understand that they live in a symbiotic world, they need the marketing droids, and the sales folks. From a technical aspect: Object Oriented Thought Process, Mythical Man Month
Ed Finkler:
- PHP and MySQL Web Development by Luke Welling and Laura Thomson
- Essential PHP Security by Chris Shiflett
- PHP5 In Practice by Elliot White III and Jonathan Eisenhamer
Matthew Turland: None, actually. The only books that might be valuable to a PHP beginner only apply if that person has had previous experience with a particular language and the book is specifically targeted at such a person. The online PHP manual is the best existing reference available for a beginner. PHP books that are worth their weight generally deal with applying PHP to a specific application domain and are targeted at intermediate to advanced users.
Richard Heyes: I don't read now due to my sight being rather poor, but I used to read the O'Reilly books a fair amount. That and the certification books (which will take a more technical approach I think).
Martynas Jusevicius: To be honest, I can't remember I would be reading a book specific to PHP.
Q. Name a programming language that you would like to learn? (if you had the time & resources, of course)
Jeff Moore: I'd like to learn one of the functional languages, not for commercial reasons, but to broaden my education.
Hasin Hayder: Python
Vidyut Luther: c#/.net stuff.
Ed Finkler: Probably Python, although I'm also curious about Objective-C, Ruby, Actionscript and Erlang. 8)
Matthew Turland: At the moment, I have my eyes on Lua. My interests do tend to vary, though. I have also in the past had an interest in learning Ruby and C#. Let me know if you have any other questions or need me to expound further upon the answers above.
Richard Heyes: Well, I've tried to learn quite a few so I'll summarise:
C - Not enough time by far
C++ - Ditto
C# - Nice, but since there's a Microsoft lilt I forewent it
Perl - Too obscure and a very steep (IMO) learning curve
Python - Looks very nice but not exactly popular compared to PHP
Ruby - Too obscure
And databases:
PostgreSQL - Nice, but I already knew MySQL quite well. Plus MySQL seemed much easier to work with day to day
SQLite - Useful, but not to me since I have access to MySQL.
I've tried a fair few, but always continue with PHP due to it's ease of use and its versatility. Plus I can do everything I want to with PHP, so I've now got no reason to learn anything else. HTH
Martynas Jusevicius: Not Ruby, so far I'm doing ok without it. I think Erlang, they say concurrent programming is going to be big. And I should get back to XQuery some time again.
I thank the panel for sharing their views and I hope this helps you understand why PHP is, where it is.
This is part of the "What Makes a Programming Language Popular" series where we compare Perl, PHP, Python and Ruby. See
[quote]Perl - Too obscure[/quote]
That makes my head hurt...find me a corporation, any corporation, that doesn't have perl installed on at least one server. Perl is ubiquitous, and while not the "stylish" web language of the day, preferred by many, many system administrators.
Posted by Perl...obscure? on January 14, 2008 at 06:32 PM CST #
Cool Interview !
Thanks for the recommendations on the <em>books</em> and the inspirations on <em>Would you learn PHP again ? </em>.
Posted by Ehab on January 14, 2008 at 11:14 PM CST #
Boring questions, stupid answers... PHP style :)
Posted by John Smith on January 15, 2008 at 01:13 AM CST #
I am really eager to go for PHP after reviewing this interview :) Way to go for all of you.
Best of luck To Hasin brother & All :)
regards,
Samiha Esha.
Posted by Samiha Esha on January 15, 2008 at 03:22 AM CST #
I am quite new to php and really like it for its simplicity in web application developing. To me the most interesting simple( read great ) features are the reflective methods and class auto loading. Especially I was very happy to know about __set and __get methods, these are awesome(though have some overhead.)
But, in addition to Hasin Hayder,(What you can do using some elite languages ( for ex, Java) in months, you can do it in PHP in a week.) I would like to say, j2ee (assumed that he did not meas desktop apps) has its strength in application server arena. Its capabilities are tested and can be trusted.
Say, implicit data type feature or the type juggling of php can really speed up the development process, like
$num = 100;
$num ="a string";
Again on the other side, it may also create a security hole. I know whats in mind, ada is more secure than java in such context! Thats what i am speaking about, the definition of 'eliteness' for language varies w.r.t. the problem to be solved.
Whatever may be the case, the session above is really enjoyable to read and learn.
Looking forward for next ....
Posted by Aman on January 20, 2008 at 12:56 AM CST #