Posted By


claudiowebdesign on 10/21/11

Tagged


Statistics


Viewed 528 times
Favorited by 0 user(s)

Document.class.php


/ Published in: PHP
Save to your folder(s)

This is a little PHP class that permits to start quickly the creation of a webpage.

When you declare an instance of the class it automatically starts the output buffering and gzip compression, it outputs all the proper tags (doctype, meta, stylesheets, scripts, etc.) until the .

Everything you write after that gets actually placed inside the body, and when the page ends the and tags gets automatically added at the bottom.

In addition to this, the class gets your IP so to display all the possible error/warning messages to you and none to the random users.

EXAMPLES/USAGE: http://claudiobonifazi.com/snippets/Document

URL: http://claudiobonifazi.com/snippets/Document

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.