PHP File Pattern

2. April 2008 – 17:20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?
// vim: ts=4:sw=4:fdc=4:nu:nospell
/**
 * An Application
 * 
 * @author     Ing. Jozef Sakáloš
 * @copyright  (c) 2009, by Ing. Jozef Sakáloš
 * @date       15. Sepember 2009
 * @version    1.0
 * @revision   $Id$
 *
 * @license application.php is licensed under the terms of the Open Source
 * LGPL 3.0 license. Commercial use is permitted to the extent that the 
 * code/component(s) do NOT become part of another Open Source or Commercially
 * licensed development library or toolkit without explicit permission.
 * 
 * License details: http://www.gnu.org/licenses/lgpl.html
 */
 
require("config.php");
 
// code here
 
// eof
?>

StumbleUpon Toolbar
  1. 2 Responses to “PHP File Pattern”

  2. You might want to leave off the final closing PHP ?> tag, as recommended by Zend for the Zend Framework. It is not required by PHP, and in certain circumstances, accidental whitespace after the closing tag can cause problems with http headers.

    By Mike van Lammeren on Dec 15, 2008

  3. Its recommended you write on the final closing PHP ?> tag, for a “well formed” source.
    The Zend Framework is a particular missuse .

    By Fausto Astudillo on Aug 20, 2010

Post a Comment

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a