View Single Post
Old 08-29-2009, 05:17 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Code:
<?php // PHP4monkeyz
$l = file('file');
$n='';
foreach ($l as $ln => $line) {
    echo "Doin da line #{$ln}.\n";
    $n .= $line."lolsox";
}
$f = @fopen('file.new, 'w');
if (!$f) {
  die("I can't be writin no files mothafuccka.\n");
} else {
 $b = fwrite($f, $data);
 fclose($f);
 echo "I done writ ". ($b/1024) . "kB, yo.\n";
}
?>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote