You are hereFeed aggregator / Sources / PHP Developer.org

PHP Developer.org


Syndicate content
Up-to-the Minute PHP News, views and community
Updated: 1 day 15 hours ago

Gonzalo Ayuso's Blog: Clustering PHP applications. Tips and hints

Wed, 07/28/2010 - 12:09

In a new post to his blog today Gonzalo Ayuso offers some tips for those out there wanting to cluster their PHP applications effectively.

Sometimes a web server and a database is fair enough to meet our project requirements. But if the project scales we probably need to think in a clustered solution. This post is an attempt at being an unsorted list of ideas working with clustered PHP applications. Maybe more than a list of ideas is a list of problems that you will face when swapping from a standalone server to a clustered server.

He touches on a few different topics you might need to consider:

  • consistency in source code
  • writing to the file systems
  • deployment problems
  • authentication/authorization issues
  • handling sessions/logs/cache files

Categories: Web Development

IBM developerWorks: Build a web-based notification tool with XMPP

Wed, 07/28/2010 - 11:57

On the IBM developerWorks site there's a recent tutorial about using PHP and Javascript with the XMPP to create a small web-based notification tool (called Pingstream).

Real-time web applications are networked applications, with web-based user interfaces, that display Internet information as soon as it's published. Examples include social news aggregators and monitoring tools that continually update themselves with data from an external source. In this tutorial, you will create Pingstream, a small notification tool that uses PHP and JavaScript to communicate over the Extensible Messaging and Presence Protocol (XMPP), a set of XML technologies designed to support presence and real-time-communications functionality.

You'll need to already have the usual software installed - PHP, Apache and MySQL - as well as a few others: Openfire, jQuery, Strophe, XMPPHP and LastRSS. They introduce some of the concepts behind real-time messaging, the XAMPP protocol and, of course the code to show how to create their service.

Categories: Web Development

WebHostingHero Blog: A Look at the Original PHP Developers

Wed, 07/28/2010 - 10:44

On the WebHostingHero blog today there's a new post going back to the roots of the PHP language and some of the original contributors like Rasmus Lerdorf, Zeev Suraski and Andi Gutmans.

When PHP began in 1995, it represented a fork on common object oriented programming languages. Designed to help provide scripting for the web, the language took on a life of its own as it became one of the primary web development standards. Today, PHP is used by millions worldwide and powers a majority of sites.

They talk about how some of the original developers are active in helping to better the languages (directly and indirectly) and how the advocacy of the community has helped it grow even stronger over the years. There's also mini-spotlights on each of the three mentioned above.

Categories: Web Development

Hokuten.net: A WordPress User's Guide to Drupal

Wed, 07/28/2010 - 09:13

If you're a WordPress user and have been wanting to get into Drupal, you should check out this guide on hokuten.net. It gives you information on two main points - installation and theming.

Anyone who has worked with both knows that anything you can do in WordPress, you can do in Drupal, and vice versa. It just takes some elbow grease. [Drupal] is a great thing to learn because of its broad market, but WordPress developers might find some difficulty getting acclimated'"Drupal has a much higher learning curve.

They mention some of the differences between the installation of the two (creating settings files, making additional directories) and a table showing the correlating theme files between the two.

Categories: Web Development

NETTUTS.com: 20 Steps to a Flexible and Secure WordPress Installation

Tue, 07/27/2010 - 14:18

On NETTUTS.com today there's a new tutorial about installing and configuring a secure WordPress installation for your site.

A comprehensive WordPress installation, albeit simple to produce, often requires multiple steps '" many of which can easily be omitted accidentally. How many times have you forgotten to customize your permalink structure? How about adding in a sitemap plugin? What about changing your timezone? If you've installed WordPress more than once, chances are you've missed something. Take the following steps and you'll never miss anything again.

Some of the steps are larger - "Get WordPress from SVN", "Add .htaccess Rules", "Apply the 4G Blacklist" - and some are smaller changes like setting up profiles, changing read/write/discussion settings and generating a sitemap. This is a great guide even if you already have WordPress installed.

Categories: Web Development

Nick Belhomme's Blog: PHP 5.3.3 Namespaces

Tue, 07/27/2010 - 13:53

In a new post to his blog Nick Belhomme takes a look at namespaces in PHP 5.3 - what they are and how to use them (complete with code snippets of a small sample project).

With PHP5.3.3 recently released I really feel it is time that php developers are taking namespaces seriously. If you don't I guarantee you will be out of a job within five years. Namespaces are a fundamental part of the future of PHP.

He also makes his sample project available for download so you can follow along a bit better. He shows how to create a namespace, how to use them in both simple and more complex examples.

Categories: Web Development

Marco Tabini's Blog: PHP 5.2 support ends just as its adoption begins

Tue, 07/27/2010 - 12:16

In a new post to his blog Marco Tabini has voiced his opinion on the decision made by the PHP development group to set the end of life of the PHP 5.2.x series with the latest release (5.2.14).

n case you missed it, the PHP team has just released 5.2.14, which effectively ends active support for the 5.2 branch. [...] The logic behind this decision is...puzzling.

He mentions the recent announcements of a few large PHP-based projects to officially support PHP 5.2 and how, because of the large jump in functionality from pre-5.2, it might be a good idea to reconsider this (preemptive?) retirement. He adds that making a move like this without consideration to these larger products could reflect negatively on the language itself. Be sure to check out the comments for more views from other members of the community.

Categories: Web Development

Sebastian Bergmann's Blog: Using HipHop for Static Analysis

Tue, 07/27/2010 - 11:13

In a new blog entry today Sebastian Bergmann quickly shows a method of performing some code analysis on code transformed by HipHop for PHP.

HipHop for PHP, the source code transformer that turns PHP code into C++ code that can then be compiled with g++, can also be used for static code analysis to find problems in PHP source code.

He includes a script that creates an XML document that both Checkstyle and PHP_CodeSniffer can use to check for a valid format on his sample "CodeErrors.js" file. He includes the script to create this XML file.

Categories: Web Development

ZendCasts.com: Autocomplete Control with ZendX_JQuery

Tue, 07/27/2010 - 10:48

New from ZendCasts.com today there's a new screencast taking their integration of jQuery with the Zend Framework to the next level - creating an autocomplete control.

In the last video, I discussed ZendX_JQuery integration. Now we're going to take it a step further by developing our own jQuery autocomplete control, using a country list, PHP 5.3 and anonymous functions.

You can watch the video via the in-page player and you can download either a copy of just the project or browse the whole repository for this and other projects.

Categories: Web Development

WordPress Blog: PHP 4 and MySQL 4 End of Life Announcement

Tue, 07/27/2010 - 09:20

There's some huge news from the WordPress blog today - an end of life announcement that the popular blogging platform will no longer be supporting PHP4 and MySQL 4.

Our approach with WordPress has always been to make it run on common server configurations. We want users to have flexibility when choosing a host for their precious content. Because of this strategy, WordPress runs pretty much anywhere. Web hosting platforms, however, change over time, and we occasionally are able to reevaluate some of the requirements for running WordPress. Now is one of those times. You probably guessed it from the title '" we're finally ready to announce the end of support for PHP 4 and MySQL 4!

The last version that will fully support PHP4 will be v3.1 and will be released in late 2010. The next version (v3.2) will jump the requirement up to PHP 5.2. According to their statistics, only around 10% of the installs are on PHP4. They also found that less than 6% of users were on MySQL 4. See the full post for complete details.

Categories: Web Development

Zend Developer Zone: Twice the Amount of Bugs and Twice the Amount of Winners!

Mon, 07/26/2010 - 16:29

On the Zend Developer Zone today Ralph Schindler has posted the results of the latest Zend Framework Bug Hunt Days (for July 2010).

Zend Framework has recently wrapped up it's July 2010 Bug Hunt with some fantastic results. Collectively, we closed 50 issues in 3 days. That's nearly twice what we have seen in recent months- a trend we hope continues into the coming months!

Top bug hunters this month were Dolf Schimmel and Ramon Henrique Ornelas tying with 14 bugs each with Michelangelo van Dam coming in third.

The fixes in this bug hunt that have been merged into the 1.10 release branch will see the light of day in our next scheduled mini release 1.10.7 during the week of July 26th.

Categories: Web Development

John Hamelink's Blog: Top codeigniter libraries I can't live without.

Mon, 07/26/2010 - 15:12

In a new post to his blog John Hamelink lists top CodeIgniter libraries he couldn't live without in his framework development.

CodeIgniter is a great framework. I use it exclusively because of it's flexibility and relative 'lightness' but what use is a framework without libraries to extend its usefulness? (well, not much use, naturally.) Here is my personal list of CodeIgniter libraries I would struggle to live without.

His list includes:

Categories: Web Development

I Am Learning PHP Blog: Do Web-Scripting Languages Really Need OOP?

Mon, 07/26/2010 - 14:51

On the I Am Learning PHP blog today there's a new post asking if web scripting languages really need object-oriented functionality or not:

The object-oriented revolution has not been without controversy. [...] Still, there's no doubt that the revolution has largely succeeded. Most of the popular programming languages in use today are either fully object-oriented or have object-oriented extensions. [...] We feel that the benefits of OOP for 'major' (that is, compiled) programming languages like Java and C++ are clear. On the other hand, we feel that the benefits of OOP for scripting languages (like Perl and PHP) are less obvious and are most debatable in the case of Web-scripting (PHP).

They go one to explain some of their reasoning including the differences between scripting languages and others and how OOP has been implemented on the scripting side. They point out some good things about OOP in PHP but still think it's "tradeoffy" for some of the problems with it.

Categories: Web Development

Sebastian Bergmann's Blog: PHPUnit 3.5: Refactoring to Components

Mon, 07/26/2010 - 12:19

In a new post to his blog Sebastian Bergmann talks about some updates to PHPUnit that are coming in the 3.5 release.

When you look at the list of changes for PHPUnit 3.5, you will see that many of them deal with refactoring to components. Here is an overview of these new components.

Components that were refactored to work even better include:

Categories: Web Development

User Group: New York PHP Meeting - July 27th @ 6pm (Nate Abele & Hans Zaunere on PHP 5.3)

Mon, 07/26/2010 - 11:54

If you're going to be in the New York area tomorrow (July 27th) and want to get in on the latest in PHP 5.3, the New York PHP User Group is having their monthly meeting for July featuring Hans Zaunere and Nate Abele talking about all that PHP 5.3 has to offer.

What do you get when you mix namespaces, late static binding and closures? PHP 5.3 and NYPHP's July meeting, of course. Lithium co-founder Nate Abele and NYPHP Managing Member Hans Zaunere will start by giving an overview of these key concepts, followed by a review of how they're being utilized in the real-world, and finishing with an open Q&A discussion of these new hotter-than-July language features.

The meeting will start at 6:30pm tomorrow (July 27th) at the IBM offices on Madison Ave. You'll need to RSVP if you're going to attend. The meeting will be followed by a post-meeting event at TGI Fridays at Lexington and 5th. For full details on the meeting, check out http://www.nyphp.org/PHP-Presentations/175_PHP-53-Feature-Review-Discussion">this page on the NYPHP site.

Categories: Web Development

Rob Allen's Blog: New Zend_Auth tutorial

Mon, 07/26/2010 - 10:06

Rob Allen has a new post to his blog today about the update he's made to his Zend_Auth tutorial, introducing the authentication component of the Zend Framework.

After too many months of neglect, I have completely rewritten my Zend_Auth tutorial so that it is compatible with Zend Framework 1.10! As an experiment, I have written it directly in HTML, rather than PDF as before and cover the login form along with the login controller code required to authenticate a user using a database table. For good measure, I've included logging out and a view helper to show how to access the logged in user's details.

The tutorial walks you through the creation of a users table, an auth controller/form and the code needed to validate the user against in information in the table (as well as how to log them out). You can also download the code as a zip file.

Categories: Web Development

Kevin Schroeder's Blog: Debugging an RPC call in Zend Framework

Mon, 07/26/2010 - 09:37

In a quick new post to his blog today Kevin Schroeder shows you how to debug an RPC call in your Zend Framework application.

Just a quickie. Do you ever want to debug an RPC call to XML-RPC or Soap or something like that using Zend Studio/PDT and the Zend Debugger? What I mean is debug the RPC call, not the request making the RPC call. Doing that is actually quite simple. I have some code here to share that I recently (as in 5 minutes ago, used).

His code snippet shows an "if" conditional that sets values on a set of cookies that the Zend Debugger will pick up on and start the debugging process (with settings like start_debug, debug_coverage and debug_start_session. He also explains the four you really need to know about in a bit more detail.

Categories: Web Development

@willhallonline

  • exasperated at poor connections, may remove and reinstall everything! 9 hours 50 min ago
  • Government sticking to IE6 http://bit.ly/ceMrg9 "more cost effective in many cases to continue to use IE6" (what?!) 12 hours 18 min ago
  • still the mail server continues to frustrate 12 hours 24 min ago
  • feeling positive today, gonna destroy this damned mail server 17 hours 32 min ago
  • where are the open source business analysts who can help out with the actual running of companies, not just make a website for them 17 hours 33 min ago