Updates from August, 2004 Toggle Comment Threads | Keyboard Shortcuts

  • wade 13:37 on Friday, 27 August 2004 Permalink | Log in to leave a Comment  

    PHP form handling 

    The O’Reilly PHP Devcenter has a new article posted seeking to help you out with your form handling with a listing of several tips to get started.

    Some of the topics mentioned are: using $_SERVER['PHP_SELF'] as the form action, using brackets for a “multivalued form parameter”, dividing up the display/logic/validation of the form into their components.

    They also mention using PHP to your advantage when printing out form elements as well as looking into the HTML_QuickForm PEAR class to help you in your quest.

  • wade 13:50 on Thursday, 19 August 2004 Permalink | Log in to leave a Comment  

    Parsing Bad XML in PHP 5.1 

    In a new note from the BitFlux blog, Christian Stocker has information about the latest patch comitted to the PHP 5.1 branch that allows you to parse not well-formed XML documents and adds the missing elements, eg. missing closing tags.

    Basically, it sets up the document with the DOM parser using a special variable (recover) to tell the interpreter to ignore incomplete data/tags and still make the information inside the document useable. The output isn’t the normal object/data model that the DomDocument normally contains, but instead outputs a corrected XML document to take and parse all over again.

    With all of the badly formatted XML out there, something like this, can come in very, very handy…

  • wade 23:41 on Monday, 16 August 2004 Permalink | Log in to leave a Comment  

    Family barbecue 

    We would like to remind everyone that August’s meeting has been cancelled in favor of a family barbecue! Please note that it will be this Saturday, the twenty-first, instead of the usual time.

    Bring your family, your meat, and a potluck dish to share. Hamburger and hot dog buns will be provided, and a cauldron of root beer will be brewing. There will be prizes for young and old, games for the kids, and geeky discussion for the adults.

    See the calendar for more details, a map, and to RSVP.

  • Jon Jensen 17:19 on Wednesday, 4 August 2004 Permalink | Log in to leave a Comment  

    SQLite, PHP and ALTER TABLE 

    Since SQLite comes bundled with PHP 5, I thought I’d post this for those interested.

    SQLite currently does not support ALTER TABLE statements. This can make developing/modifying an app a bit cumbersome, since modifying a table requires creating a temp table and copying data back and forth. To this end, I’ve created a PHP wrapper for SQLite that does the dirty work for you and supports all types of ALTER TABLE statements. The source is in the public domain, so you may use it however you like.



    I will be releasing an optimized version with cleaner code, more comments, and additional functionality (such as RENAME TABLE) in a few weeks.

compose new post
next post/next comment
previous post/previous comment
show/hide comments
go to top
go to login
show/hide help
shift + esc