All pastes #609243 Raw Edit

piccolo

public php v1 · immutable
·published 2007-07-08 19:32 UTC
rendered paste body
	<?php									$submissions = "submissions.txt";			$handle = fopen($submissions, 'w');			$handle2 = fopen($submissions, 'r');			$data = "and now is it working?!!?!?!?! \n";			fwrite($handle, $data);			$data2 = "I am pissed that this  program either reads or writes... but never both.";			fwrite($handle, $data2);			$data3 = "Now I have to figure out how to not make it overwrite. ";			fwrite($handle, $data3);			$content = fread($handle2, filesize($submissions));			print $content;			fclose($handle);			fclose($handle2);			?>