pastebin - collaborative debugging
pastebin is a collaborative debugging tool allowing you to share
and modify code snippets while chatting on IRC, IM or a message board.
This site is developed to XHTML and CSS2 W3C standards.
If you see this paragraph, your browser does not support those standards and you
need to upgrade. Visit WaSP
for a variety of options.
Posted by MellerTime on Sun 6th May 11:40
download | new post
<?php
$URI = $URL['path'].'?'.$URL['query'];
DEFINE('SOURCE',
'http://nlindblad.org'.
$URI);
DEFINE('CACHEDIR',
'./cache/');
// The cache directory
DEFINE('LIMIT',
3600);
// Maximum time node will be cached
function refresh($cache) {
$content = @
file(SOURCE
);
// foreach ( $content as $line ) { fputs($node, $line); };
}
function main() {
$cache = CACHEDIR.
md5(SOURCE
);
if ( $delta >= LIMIT ) {
refresh($cache);
} else {
}
} else {
refresh($cache);
}
}
main();
?>
Submit a correction or amendment below. (click here to make a fresh posting)After submitting an amendment, you'll be able to view the differences between the old and new posts easily.