I keep getting
Warning: fread() [function.fread]: Length parameter must be greater than 0.
The code is
$fp = fopen("$form_data1", "r");
$flatfile = fread($fp, filesize("$form_data1"));
fclose($fp);
$spaces = str_repeat(' ', 10);
$new_str = str_replace('/', $spaces, $flatfile);
$new_str1 = str_replace('-', '.000', $new_str);
$fp = fopen("$form_data1", "w+");
fwrite($fp, $new_str1);
fclose($fp);
$content=file("$form_data1");
This code USED TO WORK, but I guess my host changed something because now it doesnt. Any idea if it cam be fixed ? The text files i submit to this are attached.