Say i wanted to code my script shorter, like so:
instead of doing $contents++PHP Code:<?php
$handle = fopen('mytxt.txt', 'r');
$contents = (@fread($handle,filesize('mytxt.txt')))[B][COLOR=DarkOrange]++[/COLOR][/B];
fclose($handle);
$handle = fopen('mytxt.txt','w');
fwrite($handle,$contents);
fclose($handle);
echo $contents;
?>
why does that return a parse error? its the same exact thing i think





Reply With Quote