Greetings,
I have an uploaded file via a form. I would like to write that uploaded file to a file-system. I know how to read the file line-by-line and write it out. I'm wondering if there is an easier way. Does anyone know if I can just simply say "write this file to this directory/filename.txt"?
Can I do something like so: ?
$myFile = file ( $_FILES['uploaded_file']['tmp_name'] );
$path = 'my/directory/path/and/filename.txt';
$fp = fopen($path, "w");
$write = fputs($fp, $myFile);
Thanks for any advice.
Jdc44