View Single Post
  #12  
Old 04-04-2005, 03:01 PM
 
auggybendoggy auggybendoggy is offline
 

Member
  
Join Date: Dec 2004
Posts: 20
 

Default

i dont know what to put?

heres what it says

#
# fopen + fread wrapper
#
function func_file_get($file, $is_root = false) {
$fp = func_fopen($file, 'rb', $is_root);

if ($fp === false) return false;

while (strlen($str = fread($fp, 8192)) > 0 )
$data .= $str;

fclose($fp);
return $data;
}

#
# readfile() wrapper
#
function func_readfile($file, $is_root = false) {
$file = func_allow_file($file, $is_root);
if ($file === false) return false;
return readfile($file);
}

#
# Get tmpfile content
#
function func_temp_read($tmpfile, $delete = false) {
if (empty($tmpfile))
return false;

$fp = @fopen($tmpfile,"rb");
if(!$fp)
return false;

while (strlen($str = fread($fp, 4096)) > 0 )
$data .= $str;
fclose($fp);

if ($delete) {
@unlink($tmpfile);
}

return $data;
}
__________________
my mama always said if you\'re not cheating you\'re not trying! 4.0.9
Reply With Quote