Quote:
Originally Posted by GrouchyAdmin
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