Kwebble : Blog

  • PHP tip: omit ?> from PHP only files

    Gepubliceerd op 28 mei 2008 in Programming.

    Great tip from the Zend programmer’s Reference Guide: For files that contain only PHP code, the closing tag (”?>”) is never permitted..

    This is useful as it prevents whitespace after the closing ?> from being accidentally added to the output. I always check PHP files for whitespace manually, but this technique solves that problem automatically. Great!

    • php
    • tip

    Reactie:

    Annuleren

  • Rubrieken

    • Artikelen
    • Foto's
    • Links
    • Media
    • Overheid
    • Programming
  • Recente Berichten

    • A trim() method for the JavaScript String class
    • Is u iets opgevallen?
    • Tip: use the axis:axis:1.4 Maven artifact if you need Axis 1.4 support
    • Google Closure tools
    • Google en Microsoft indexeren tweets
  • Gerelateerde berichten

    • Simple Cloud API
    • Showing related articles in a WordPress blog
    • Don’t forget __isset() with overloaded setters and getters
    • MySQL STRICT_TRANS_TABLES mode and truncated text values
    • Archives for a category WordPress plugin
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact