News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

IBM developerWorks:
The future of PHP
0 comments :: posted Friday May 09, 2008 @ 07:55:54
voice your opinion now!

In a new post on the IBM developerWorks page, Nathan Good takes a look at some of the features of the up and coming versions of the PHP language including things like namespaces, changes in the XML handling and a few things taken out.

PHP's next edition, V6, includes new features and syntax improvements that will make it easier to use from an object-oriented standpoint. Other important features, such as Unicode support in many of the core functions, mean that PHP V6 is positioned for better international support and robustness.

New features he mentions include namespace support, improvements to the native Unicode support as well as a few of the things that will be permanently retired like the php.ini settings for magic_quotes and register_globals.

tagged with: future namespace unicode language xml soap registerglobals magicquotes


Markus Wolff's Blog:
Fulltext search as a webservice
0 comments :: posted Wednesday May 07, 2008 @ 12:57:47
voice your opinion now!

In a recent blog entry about a fulltext searching solution, Markus Wolff hacked together in a few hours with Zend_Search_Lucene:

While working at some really old code that provided a fulltext search feature, I was at one point incredibly pissed rather unsatisfied due to the fact that said code resisted all attempts to debug it. This lead to the decision to sit down on a rainy weekend to try if I couldn't come up with something more useful, and most importantly, scalable.

His method allowed for separation between the indexing and the main app and how he changes some of his methods when he learned that Solr did something very similar. He also lays out some example XML content and how it's handled in his script (via a SimpleXML object).

tagged with: fulltext search xml document zendsearchlucene zendframework solr

Michael Girouard's Blog:
Rolling Your Own MVC The View
0 comments :: posted Monday April 28, 2008 @ 09:39:45
voice your opinion now!

Michael is back with part three of his series stepping you through the creation of your own MVC framework (Part 1 and Part 2) with a look at the part that interfaces with the user - the View.

Using the view as a starting point may seem odd at first considering the view-related actions are some of the last steps in the page load scenario, but since our views don't have any external dependencies, unit tests are very easy to write and so is the accompanying code.

He explains how views work along with the rest of the framework and some of the basic rules surrounding how they get their data. Code comes along with the explanations for different views like XML, HTML and JSON methods of output.

tagged with: modelviewcontroller mvc view tutorial output xml html json

Stefan Priebsch's Blog:
PHPUnit test and Code Coverage Statistics with phing
0 comments :: posted Tuesday April 22, 2008 @ 14:15:18
voice your opinion now!

Stefan Priebsch has posted an example of how he uses PHPUnit "manually" to reduce the overhead (and added complexity) of calling phing.

Instead of instantiating PHPUnit from phing, I use the command line interface to call PHPUnit. This decouples phing and PHPUnit, which should cause less problems with version updates in the future. To configure PHPUnit, phing creates a temporary XML configuration file which is deleted after PHPUnit has finished.

The source is included in the post - it manually builds the XML file needed for phing to do its job.

tagged with: phing phpunit codecoverage statistic generate xml

MSBWare.com:
XML to Array
0 comments :: posted Monday April 14, 2008 @ 10:23:11
voice your opinion now!

Michael has posted a simple script today that takes in XML data and spits back out an array on the other side:

The function takes the specified XML data (which must be in valid XML format) and converts into an array. Any attributes in the XML elements are dropped an only the element values are placed in the array.

The code uses a combination of XPath, DOM, and regular expressions to parse the given XML content.

tagged with: xml translate array xpath dom regularexpression data element

DevShed:
Parsing Child Nodes with the DOM XML extension in PHP 5
0 comments :: posted Tuesday April 08, 2008 @ 09:47:48
voice your opinion now!

Alejandro Gervasio has finished up his series on DevShed looking at working with the DOM extension in PHP5 with this new article, a look at parsing child nodes.

In this last chapter of the series, I'm going to teach you how to handle the child nodes of an XML document by way of two simple methods, called hasChildNode() and removeChild() respectively. So let's not waste any more time in preliminaries and learn how to use them in a helpful way.

They review some of the concepts mentioned previously before moving ahead to the use of the hasChildNodes and removeChild methods to check for children and get rid of only certain ones.

tagged with: dom xml php5 tutorial child node haschildnodes removechild

IBM developerWorks:
Use an XML database in PHP and Java applications
0 comments :: posted Thursday April 03, 2008 @ 09:33:36
voice your opinion now!

The IBM developerWorks site has posted a tutorial (you'll need to log in) showing how to use native XML databases to speed up development time for your applications.

Native XML databases have grown in popularity along with XML, because data is stored as native XML, rather than through tables in a traditional database. Using a native XML database means that a change to the schema requires minimal changes to your code and no change to the database. PHP and Java developers can benefit greatly from using native XML databases

IT talks about how to connect to the database (in this case DB2), grab the XML data via a query and how to insert information back in via a web-based form. There's also an example showing how to make a "search" on the data and how to change the schema of the database on the fly as well.

tagged with: xml database application tutorial db2 modify schema

DevShed:
Accessing Attributes and Cloning Nodes with the DOM XML Extension in PHP 5
0 comments :: posted Tuesday April 01, 2008 @ 15:11:43
voice your opinion now!

DevShed continues their series about working with XML in PHP's DOM extension with this new tutorial posted today showing how to get at attributes for tags and cloning nodes from others.

You've probably realized that the DOM XML library can be pretty useful when working with web documents. However, this extension includes some other methods, which can be utilized to parse attributes of a given XML string, as well as to clone nodes.

They show how to use the getAttributes method, hasAttribue method and cloneNode method to work with their XML examples.

tagged with: php5 clone node xml tutorial attribute node dom

DevShed:
Handling HTML Strings and Files with the DOM XML Extension in PHP 5
0 comments :: posted Wednesday March 26, 2008 @ 08:46:05
voice your opinion now!

On DevShed today, they continue their series looking at working with XML in PHP with the DOM functionality with the fifth part of their series, a look at working with HTML strings and file data.

Understanding how to use the methods and properties provided by this library requires a little effort from you, despite its fairly easy learning curve. [...] The DOM XML extension has plenty of options when it comes to moving portions of an XML document (or even the entire document) from one place to another. This is certainly a process that can be performed with minor hassles by utilizing the intuitive DOM API mentioned in the beginning.

They show how to use loadHTML to pull in the text from an HTML string and use loadHTMLFile to pull it in from an external HTML file. Finally, they show how to write the data and whatever changes you might have made to it, back out to a file with saveHTMLFile.

tagged with: tutorial dom extension xml handling html savehtmlfile loadhtml loadhtmlfile

Developer Tutorials Blog:
5 PEAR gems free php scripts that will help you code quicker
0 comments :: posted Wednesday March 19, 2008 @ 09:37:29
voice your opinion now!

Akash Mehta has pointed out five "PEAR gems" that can help you get your code up and running faster - some helpful bits of code to help you deal with some common issues.

Sifting through the repository is also a challenge; a basic category system is in place, but it’s hard to tell what you want when you don't know what's available. Here are some gems from the PEAR repository that you could really find useful.

The five that made his list are:

tagged with: pear repository package akisment http archive spreadsheet excel xml


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

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