|
Posted by Kimmo Laine on 10/04/21 11:45
"milahu" <milahu@googlemail.com> wrote in message
news:1145365711.177670.64360@u72g2000cwu.googlegroups.com...
> The uploaded file is stored in a temporary folder outside your usual
> PHP `filesystem'.
> IIS seems to deny direct access to this folder, so you have to stick to
> PHP's special functions for handling file uploads.
>
So now copy() is a special function? I use just copy to handle uploaded
files, in that particular script. I could fix it to use move_uploaded_files
but it works now. "If it works don't fix it." And IIS does not deny access
to it as I can access it with copy. I don't have to use
move_uploaded_files() if that is what you mean by special function.
> is_file() checks for regular files and returns false on directories or
> symlinks, while file_exists() returns true, if the file, link or
> directory exists.
But an uploaded file is neither a symlink (windows filesystem has no
symlinks) nor a directory, it's just a normal file. Now what exactly is the
determination of a "regular file", if the uploaded file is not one?
--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|