File Upload Problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Running into a problem doing file uploads with Safe Mode enabled. Can
anyone point me to some example code or anything along those lines? I keep
running into this problem:

Warning: copy(): SAFE MODE Restriction in effect. The script whose uid is
32084 is not allowed to access /folder owned by uid 99 in /phpfile on line

Thanks for any help.

Randy Jackson

Re: File Upload Problem

Quoted text here. Click to load it , look for:

"When safe_mode is on, PHP checks to see if the owner of the current script
matches the owner of the file to be operated on by a file function. For
example: ..."


Re: File Upload Problem

["Followup-To:" header set to comp.lang.php.]
Randy Jackson wrote:
Quoted text here. Click to load it
Quoted text here. Click to load it

Don't copy(). Do a move_uploaded_file() instead.

<quote src=" ">
    Note:  move_uploaded_file() is not affected by the normal safe
    mode UID-restrictions.

Mail to my "From:" address is readable by all at /
== ** ## !! ------------------------------------------------ !! ## ** ==
may bypass my spam filter. If it does, I may reply from another address!

Site Timeline