Hello,
I\\'m creating a download site for some software that I wrote, before the user can download a copy, they first fill out a form that I copy to a text file. This text file is then zipped with the rest of the program which they can then download. The problem I am having is that the file that I create cannot be read from some reason.
here is the file creation code:
$myFile= @fopen(\\"/$folder_name/hims.txt\\",\\'w\\') or die (\\"Hims.txt could not be opened\\");
fputs($myFile, \\"[Info]\\n\\");
fputs($myFile, \\"Name=$name\\n\\");
fputs($myFile, \\"Address=$address\\n\\");
fputs($myFile, \\"City=$city\\n\\");
fputs($myFile, \\"Province=$prov\\n\\");
fputs($myFile, \\"Postal Code=$postal\\n\\");
fputs($myFile, \\"Telephone=$phone\\");
fclose($myFile);
and this is the codse for reading the file:
$file= @fopen(\\"/$folder_name/hims.txt\\",\\'r\\') or die (\\"hims.txt could not be read.\\");
$file_contents = fread ($file, filesize (\\"/$folder_name/hims.txt\\"));
fclose($file);
the file I create has permissions set to: rw-rw-rw. when the script tries to read the file, I get \\"hims.txt could not be read\\". I\\'m outta idea\\'s as to what is wrong...
Thanks,
Joel