- what if you have to john smiths. I suggest you establish a unique username (which might be used in other ways as well), or use their SSN or other unique identifier.
so you'd have
jsmith
jsmith1
jsmith2
also, you must think about replacing " and ' in names, like O'Neil for example, and the - in Catherine Zeta-Jones
if you're good in mysql try the attached function to generate a username
- you MUST have set the permissions of the php daemon (usually nobody or apache) to be able to write the file, then
$fp = @fopen($filename, 'w');
fwrite($fp, $filestring);
fclose($fp);
It's really pretty simple.
You might check as to the existence of the file and handle this as well.
Sam