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

    Reacties zijn gesloten.

  • Rubrieken

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

    • Stanford Web Applications course lectures
    • The importance of knowing Unicode
    • “If you are not paying for it, you’re not the customer; you’re the product being sold.”
    • Inzage in je gegevens bij Facebook
    • Tuning Oracle UCM 11 & Site Studio performance
  • Gerelateerde berichten

    • To use localStorage in Firefox cookies must be allowed
    • Smaller classes make better code
    • Simple Cloud API
    • Showing related articles in a WordPress blog
    • Don’t forget __isset() with overloaded setters and getters
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact