I have a script that enables me to write text to a file.
But the php script inserts 2 spaces into text area, after it is saved.
I need to remove the 2 leading spaces.
Script:
$fp = fopen($file, "w") or die("Couldn't open $file for writing!");
fwrite($fp, $data) or die("Couldn't write values to file!");
fclose($fp);
echo "Saved to $file successfully!";
}
?>