News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Zend Developer Zone:
Why Should I Care What Server My Application is Running On?
July 15, 2008 @ 13:12:32

On the Zend Developer Zone there's a new article that looks to answer the question in its title - "Why should I care what server my application is running on?" (by Eddo Rotman)

Imagine this - you develop an application on your machine and then, when you come to deploy it to the production server, all of a sudden, you encounter various errors and failures. Or maybe, when you decide to switch your hosting provider, your application stops behaving the way it should. How about this -... one day, out of the blue (well, out of your IT manager's whim) your application just misbehaves. Sounds familiar?

Times like can never be completely avoided (yes, there'll always be bugs) but you can take some steps to help prevent most of the major failing points. He points out some of the key configuration directives to watch out for, differences in some functions' responses based on the OS, and the differences in character sets between a unix-based and Windows based environment (like rn versus just n).

0 comments voice your opinion now!
tip configuration setting platform server difference bug failure tutorial



Stefan Priebsch's Blog:
TDD in a self-experiment
June 26, 2008 @ 07:57:32

Stefan Priebsch has posted an overview of some of his experiences with test-driven development in PHP. Specifically, he talks about it in the context of a small CMS he's been working up.

The CMS I am using is a small engine that puts together (potentially multi-lingual) page content, templates, and a site structure, and creates semi-static pages. It does not have a sleek GUI frontend, because by nature I am not afraid of a text editor, and most of the time get quicker results by just writing HTML than fighting with one of these what-you-see-is-what-you-might-get HTML editors.

He talks about the configuration files containing the app's settings (inspired by the YAML Symfony uses) and his work towards the "best matching pattern" algorithm. This is where the TDD came in - he cheated a little with some base classes (tests first!) and then came up with the tests for checking template names and more complex template interactions.

The post includes drops of code here and there as well - examples of the unit tests and of the configuration files.

0 comments voice your opinion now!
testdriven development tdd example cms template configuration file


Symfony Blog:
YAML in symfony 1.1
June 19, 2008 @ 11:18:38

This new post on the Symfony blog today looks at using the framework's built-in support for the YAML format. They include a few examples of the code to make the files and how to use them.

Here is a short tutorial about my discovery of the new YAML parsing library that comes with symfony 1.1. As you may know, YAML files are a place symfony developers spend time writing configuration, it is very important they have a good tool to manipulate data and debug files.

They include code showing how to pull in a sample file, access the properties inside of it and how to take a multi-dimensional PHP array and push it back out (automagically) into a new YAML formatted file.

0 comments voice your opinion now!
yaml symfony framework format configuration tutorial


Ibuildings Blog:
Off-The-Shelf Server Setup
May 30, 2008 @ 08:43:28

On the Ibuildings blog, Ian Barber has a reminder to PHP developers out there used to their servers "just working" because of the popularity of LAMP. He recommends digging a little deeper to the "behind the scenes" of how the server is configured.

PHP programmers generally know what a good systems architecture should look like, but it is often a reality of development that they will have little input on the system itself until the last minute. In fact, it's far from uncommon for a developer to be faced with an off-the-shelf dedicated LAMP server, and left up to their own devices.

He recommends getting to know things like the package manager for your distribution (apt, yum, yast, etc), stripping down the modules your installation is using, check that all of the packages in use need to be enabled and ensure that the network connection is set up correctly and is what you need for the site.

0 comments voice your opinion now!
oftheshelf default installation configuration behindthescenes lamp server


Eirik Hoem's Blog:
Simple config management for PHP
May 30, 2008 @ 07:54:50

In a new post to his blog today, Eirik Hoem gives an example of using the parse_ini_file function to work with .ini files as configuration for your application.

When doing complex applications it's often nice to have some sort of system for handling settings. PHP has a nice function called parse_ini_file which can be used to create a basic but still usable setting file feature. A simple class which loads the configuration file and offers some methods to retrieve the values for a given key is all that's needed.

His example code gives a sample ini file with database connection information and a MyConfigClass that parses the file and can get or set values in it.

0 comments voice your opinion now!
parseinifile configuration management example code


Zend Developer Zone:
Synchronizing Drupal Modules with Adobe AIR
May 13, 2008 @ 07:58:10

On the Zend Developer Zone, there's a new article/tutorial showing how to keep things in sync on your Drupal installation with the help of Adobe AIR.

Whether you're an enterprise developer working in a large shop or setting up a blog for yourself, you've almost certainly been tasked with keeping your development code in sync with some type of stable release. Whether a project is big or small, you still need to ensure that the core code you work with remains consistent.

The tutorial walks you through the setup of a basic AIR application, how to pull the configuration XML into it and parsing it to use in the interface. The next step is the sync, grabbing your config and pushing it out to other multiple configs across your sites (via a REST service).

0 comments voice your opinion now!
adobe air synchronizing module drupal configuration rest webservice



Developer Tutorials Blog:
The ultimate PHP web development environment, part 2
March 24, 2008 @ 09:35:17

On the Developer Tutorials blog today, Akash Mehta has posted the second part of his look at the "ultimate web development environment", a continuation from this previous part.

Today I'm going to look at a local development server and its PHP configuration, as well as some of the IDEs/editors available for Linux, especially the cross-platform options.

Tools mentioned this time include things like a local development server (invaluable) some PHP configuration tips and the editors they mentioned, things like Aptana, Eclipse and Zend Studio.

0 comments voice your opinion now!
development environment series local server ide configuration setting


Carsten Lucke's Blog:
Configuration issues with Xdebug on Debian Etch
February 01, 2008 @ 12:44:00

For anyone that's had an issue with getting XDebug to work with the Debian linux distribution, you might want to check out this helpful hint Carsten Lucke has posted about.

This week I started to setup a Debian-based (Etch) web-server with PHP 5.2 in a virtual-machine with VMWare. Part of this setup was getting XDebug2 integrated. It's really awesome and my students definitely need to learn about it. [...] Building went well as usual but when I tried to integrate the extension inside php.ini it was all weird.

His system kept throwing him an error when he tried to load the shared module using the zend_extension directive, hand things happened. Loading it normally worked (so he knew it wasn't the module) and he finally figured out the problem:

But I need to enable it as Zend extension. Whatever. I finally used the full path to xdebug.so to load it [...] that worked.
0 comments voice your opinion now!
debian configuration issue xdebug linux zendextension


Developer Tutorials Blog:
Why you should be using YAML for config
January 25, 2008 @ 11:22:00

The Developer Tutorials blog has a new post mentioning the use of YAML structure for creating configuration files in your application.

YAML, or YAML Ain't Markup Language, is a "human friendly data serialization standard". It's essentially a very basic format for storing data, and uses far less syntax than standard PHP. [...] It's almost like English; it's as basic as you want. Of course, that's not to say it doesn't support complex structures - this example demonstrates the power of the format.

He also points out the spyc extension that makes working with the files in PHP a breeze.

0 comments voice your opinion now!
yaml config markup language configuration file spyc



Community Events











Don't see your event here?
Let us know!


package mysql framework releases book ajax PHP5 PEAR zendframework developer zend example database application conference release code job cakephp security

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework