February 26, 2004 – 12:00 am
Kellan found that it was easy to build Apache 2.0 and PHP 5 on Mac OS X.
January 28, 2004 – 12:00 am
If you’re working with XPath in the DOMXML extensions to PHP, there’s an undocumented function you’ll probably need: xpath_register_ns (xpath context, namespace prefix, namespace uri).
Without it, you’ll have to write ugly XPath expressions for documents with a default namespace (such as those returned by FileMakerPro.)
Thanks to Brandon Whitehead for pointing it out in the annotated [...]
More like this: PHP, xml
|
Posted under Uncategorized
|
January 21, 2004 – 12:00 am
[ via Bitflux ] An introduction to PHP 5’s SimpleXML module.
More like this: PHP, xml
|
Posted under Uncategorized
|
January 16, 2004 – 12:00 am
This week I learned that XML Catalogs are very important.
This started when I updated Marc Lyanage’s PHP binary for Mac OS X on my development machine.
Pages went from taking miliseconds to over a minute to render. To say I was puzzled would be an understatement. I rolled back to an earlier version.
Looking for Clues
Some initial [...]
December 6, 2003 – 12:00 am
Use AppleScript to check your PHP syntax from within BBEdit. Bloody brilliant!
More like this: apple, PHP
|
Posted under Uncategorized
|
November 30, 2003 – 12:00 am
Christian Stocker’s slides on XML/XSLT/XPath support in PHP5. Some highlights:
LibXML2/LibXSLT become the ’standard’
Implements W3C Level 2 DOM
XSD and RelaxNG validation
I’m looking forward to it.
More like this: PHP, xml
|
Posted under Uncategorized
|
November 30, 2003 – 12:00 am
Christian Stocker’s checked in some code to PHP5 that’ll let you call any PHP function from within your XSLT. Not really portable, but there’s something nice about being able to generate ISO dates without passing them in as parameters to the transform.
Here’s Christian’s example:
<xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”
xmlns:php=”http://php.net/xsl” version=’1.0′>
<xsl:template match=”/”>
<xsl:value-of select=”php:function(’date’, ‘r’)”/>
</xsl:template>
</xsl:stylesheet>
More like this: PHP, xml
|
Posted under Uncategorized
|
October 21, 2003 – 12:00 am
Simon discovers XPath. He likes it.
If you’re on a Mac, go directly to Marc’s site and download his build of PHP with LIBXML2 and LIBXSLT built-in so you can play with XPath.
October 16, 2003 – 12:00 am
For future reference: writing Unicode applications with PHP.
October 11, 2003 – 12:00 am
Random Chaos has a daily lesson in Japanese. Oh, and it’s using PHP, so if you think you need .Net or Java to write an international web application, you’re BAKA.
More like this: language, PHP
|
Posted under Uncategorized
|
September 24, 2003 – 12:00 am
[ via Eric Snowden ] Brian Lozier has a great Sitepoint article on PHP template engines.
His main point is that a template engine should dissociate presentation from logic, not keep PHP code out of HTML.
He gives us a compact, caching template class using those principles. His templates use PHP’s echo () and the alternate for-each [...]
September 24, 2003 – 12:00 am
PHPMailer came in handy at work this week. It’s a nice class that provides plenty of features over and beyond PHP’s mail () function. You can send MIME attachments; select between Sendmail, Posfix, and qmail; and send HTML email (but you won’t do that, because it’s rude.)
More like this: PHP
|
Posted under Uncategorized
|
September 16, 2003 – 12:00 am
From the Cocoon Wiki, a list of open source and proprietary projects similar to Apache Cocoon.
From that list, mod_murka looks neat. It looks for a cached HTML version of the request URI, and if it’s not found, looks for the .xml file, transforms it using whatever stylesheet’s mentioned in the file’s processing instruction, and caches [...]
August 24, 2003 – 12:00 am
XMLNuke is an XML/XSLT content management tool. The authors have written versions for PHP as well as C#.
August 20, 2003 – 12:00 am
I mentioned Kevin Davis’ experiments with Movable Type and XSLT earlier. He had asked about how to integrate his XMLized weblog with PHP’s DOMXML extension so he could transform it on the server side instead of depending on IE or Mozilla to do it on the client.
Using DOMXML to transform XML in PHP is straightforward, [...]
More like this: PHP, xml
|
Posted under Uncategorized
|