[thelist] Friday Fun - Random New Media Company Generator
David Bindel
dbindel at austin.rr.com
Fri Aug 1 23:57:26 CDT 2003
> http://adactio.com/extras/newmediagenerator/
Some of the funnier ones I got:
ThirstyFoot
Restoring competitive skills.
People lose their competitive skills all the time...
KnowledgeSquirrel
Synergising competitive services.
Uhh... How can competing services work together?
NewHead
Solving high-impact solutions.
Now that's an interesting concept: solving a solution!
I owe a tip for this, so here goes.
<tip subject="PHP partial file read function" author="David Bindel">
Reads $read bytes of file $filename starting at the offset byte $begin:
<?php
function readPartFile($filename, $begin, $read) {
$ifstream = fopen($filename, 'r');
if ($ifstream)
if (fseek($ifstream, $begin) == 0)
$string .= fread($ifstream, $read);
fclose ($fd);
return $string;
}
readPartFile('file.txt', 10000, 10000); // <--- example call to function
/*
* opens file "file.txt",
* starts reading at the 10000th byte,
* reads 10000 bytes from the file.
*/
?>
</tip>
HTH,
David
--
David I. Bindel
Website Development
dbindel at austin.rr.com
www.davidbindel.com
More information about the thelist
mailing list