Hey guys,
I wrote a file, and being a newbie I think I messed up somewhere...I will explain it:
<?php
$filename = 'shoutbox.txt';
$file = file($filename);
$delete = $delete;
$new = str_replace($file[$delete],"",$file);
echo($new);
$handle = fopen($filename, 'w');
fwrite($handle, $new);
?>
Ok guys, the $delete variable is a var from flash, that equals 1,2,3, etc of the variable(It is the line of the file) whenever I run this script, the new written file changes to "Array" and that's all....so what am I doing wrong?
Thanks guys 🙂
Chase