Reply to Re: is_file() returns false for uploaded files?

Your name:

Reply:


Posted by Kimmo Laine on 11/19/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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация