posts tagged ‘baffled’

php ob_get_contents(); buffer

July 7th, 2009

Found the dope resource when trying to store a php include inside a variable. There is a little more to it than I first thought, but not much more. Content Management Systems are built and rely upon this simpleness.

php buffer (with includes)

<?php ob_start(); // start buffer
include ('include.php');
$content = ob_get_contents(); 
// buffer contents to variable
ob_end_clean(); // end buffer and remove contents
echo $content; ?>
read the rest of this entry »

tags: , , , ,
posted in web | no comments »


color palette

March 17th, 2009

Every time I type the word palette I seem to spell it wrong, butchering something, somewhere, somehow. I’m not the best of spellers, but there is no need for this mishap when you use the damn thing everyday.

palette
A palette (IPA: /ˈpælɨt/) is: (1) a surface on which a painter mixes colour pigments. A palette may be made of wood, glass, plastic, ceramic tile or other inert material and can vary greatly in size and shape. The most commonly known type of painter’s palette is made of thin wood board designed to be held in the artist’s hand and rest on the artist’s arm; (2) the range of colors in a given work or item or body of work.-wikipedia

tags: , , ,
posted in art, web | no comments »


http status codes

March 13th, 2009

Researching http status codes and came across a massive list on wikipedia. They organize it by the first digit of the status code, specifying to which class it belongs: 1xx Informational, 2xx Success, 3xx Redirection, 4xx Client Error, and 5xx Server Error. You have the common 301 Moved Permanently, 302 Found, 303 See Other, 401 Unauthorized, 403 Forbidden, 404 Not Found, and 500 Internal Server Error listed accordingly. While looking through all of them, I noticed a client error 418 I’m a teapot, defined by the April Fools’ specification RFC 2324. All the extra documentation about HTCPCP only baffled me more. The most serious joke I’ve come across.


tags: , , ,
posted in web | no comments »