 | News Feed |
Sections
Community Events
|
| feed this: |  |
IBM developerWorks: The future of PHP
posted Friday May 09, 2008 @ 07:55:54
voice your opinion now!
BY CHRIS CORNUTT
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
posted Wednesday May 07, 2008 @ 12:57:47
voice your opinion now!
BY CHRIS CORNUTT
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
posted Monday April 28, 2008 @ 09:39:45
voice your opinion now!
BY CHRIS CORNUTT
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
IBM developerWorks: Use an XML database in PHP and Java applications
posted Thursday April 03, 2008 @ 09:33:36
voice your opinion now!
BY CHRIS CORNUTT
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: Handling HTML Strings and Files with the DOM XML Extension in PHP 5
posted Wednesday March 26, 2008 @ 08:46:05
voice your opinion now!
BY CHRIS CORNUTT
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
|