View Single Post
Old 08-29-2009, 05:32 PM  
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
Quote:
Originally Posted by GrouchyAdmin View Post
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";
}
?>

tried that..

get

Parse error: syntax error, unexpected T_STRING in /home/psmail/public_html/safelocals.com/test/append.php on line 8
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote