I noticed that if i try to fputs a variable that contains leading spaces, the spaces will not be sent to the file.
example:
[php]//note the spaces in the variable before the string “data”
$data = " data to be written to the text file";
$file=fopen(“filename.txt”,“w+”);
fputs($file, $data);
fclose($file);
[/php]
i haven’t found a way to resolve this yet. has anyone come across this and/or have a fix for it?
thanks,
doug