rraehal
05-23-2007, 12:51 PM
I have written a PHP script. I upload and open a text file and read that file. The contents of the original file are reformatted and a new file is written. I then delete the uploaded file. My user is prompted to download the new file.
All that part of the script works great. I was wondering if there was a way to move the original file. The file is in Q:\Kiosk. Can I move the file on the Q drive from the Kiosk folder to say Q:\Kiosk\Archive using PHP. Perhaps a function similar to move_uploaded_file?
If there is not a built in function, can PHP even move a local file instead of a server file? I always assumed not but thought I would ask. It would prevent me from manually removing or moving the original file. The server can have access to the Q drive if someone is logged in. It could also access the network using a UNC path.
All that part of the script works great. I was wondering if there was a way to move the original file. The file is in Q:\Kiosk. Can I move the file on the Q drive from the Kiosk folder to say Q:\Kiosk\Archive using PHP. Perhaps a function similar to move_uploaded_file?
If there is not a built in function, can PHP even move a local file instead of a server file? I always assumed not but thought I would ask. It would prevent me from manually removing or moving the original file. The server can have access to the Q drive if someone is logged in. It could also access the network using a UNC path.