phpbrowscap - Browser Capabilities PHP Project

PHP's native get_browser() function parses this file and provides you with a complete set of information about every browser's details. But it requires the path to the browscap.ini file to be specified in the php.ini browscap directive which is flagged as PHP_INI_SYSTEM. That means in most shared hosting environments you cannot edit the php.ini file.

Browscap is a standalone class for both PHP4 and PHP5 that gets around the limitations of get_browser() and manages the whole thing. It offers methods to update, cache, adapt and get details about every supplied user agent on a standalone basis.

Sometimes you need to visit some project site to read about simple php functions like "get_browser()"

The Slow Death of PHP 4 | BrandonSavage.net

The truth is that there are lots and lots of hosts that are still on PHP 4. There are still lots and lots of lines of PHP code that make use of PHP4-level features (see Wordpress and Drupal for examples). My complaint is that PHP 4 has been officially unsupported for the last year now, and PHP 5 has been out for over five years. Five years! That’s a long time to wait to take advantage of new features in the language.

Sadly, developing for PHP 4 backwards compatibility is something that companies and individuals are still doing. Wordpress released a new Widget API in version 2.8 that relies on the old-style PHP 4 constructor. Apparently, for Wordpress and many other developers, wide adoption is more important than language improvements.

Changing your coding style is a long process :( Sure my coding style is these days much more PHP5 than a few years ago but I'm still in progress to write powerful OOP based classes for php5 or php6.
At least most hosting provider offering now php5 enabled plans.

Wordpress and PHP4
Yeah really bad I see even in new code parts a lot of old fashioned coding styles :(
I think that some people still provide code written for PHP4

Why PHP Doesn’t Suck

From its original design as a way to create dynamic web pages, PHP has evolved into a language (and supporting environment) that is particularly well suited to rapidly developing web-scale applications. Examples of these include Facebook and Wikipedia.

Unfortunately, its genesis prevented it from being taken seriously as an enterprise-grade language and environment, especially when compared to the incumbent 800 pound gorilla, Java.

PHP is great even if you don't use Zend framework or others. The best thing is that you don't need any development environment, just write code and run your script on a php enabled web host. No compilation no license costs just open source.

It will be interesting the next years how popular PHP becomes on windows...

PHPBuilder.com: On The Go Coding with PHPanywhere

In this recent post to PHPBuilder.com they spotlight a web-based tool you can use to write PHP code no matter where in the world you are - PHPanywhere.

PHP developers, just like most IT professionals, are often on the go, working from various locations. You could be working in your office one day, at a conference in a remote location the next day, and from a client's business office the next. [...] PHPanywhere is not just a stand-alone IDE, it's designed with project collaboration in mind. With a built-in FTP client and syntax editor built right in, it makes this tool uniquely appropriate for developer teams as well as individual programmers.

They look at how to get started with the tool and include a few screenshots to give you a preview of how the tool looks and feels. A short feature list is also included.

Just tried it and removed my account after a few minutes:

  • I need to add a ftp server to add / edit files. That is okay but my ftp login/password is send via a non-secured connection (no SSL) 
  • First trial to edit files was in Firefox (Ubuntu) and all windows needed to be resized and the code wasn't parsed in the window. Can't use Firefox 3.5 with phpanywhere 
  • Next trial in Chrome was much better, but hitting the enter button took me into another location than the next line.

Sorry this is not a beta version, I like the idea but there has to be working version and of course the ability to edit files on some "local" server

Rating 2/5 for the nice interface