problem with move_uploaded_file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roy G. Vervoort

    problem with move_uploaded_file



    I have created a form wich makes it possible to send the information on the
    form by e-mail with an attachment. After clicking the button i receive the
    following error

    Warning: SAFE MODE Restriction in effect. The script whose uid is 528 is not
    allowed to access / owned by uid 0 in
    /customers/meander/www/werken_leren/sollform/upload.php on line 43

    this is line 43:

    move_uploaded_f ile($_FILES['file']['tmp_name'], $filepath);

    what can be the problem

    thanks for helping me.

    regards

    roy

    Holland


  • Chung Leong

    #2
    Re: problem with move_uploaded_f ile

    Why would you need to move the uploaded file when you're going to send it by
    email? Moving a file to / would probably never work, since that's owned
    exclusively by root (I think--no *nix expert here).

    Just open the temp file and send its content.

    Uzytkownik "Roy G. Vervoort" <roy.vervoort@r ojaal.nl> napisal w wiadomosci
    news:403cdf2a$0 $558$e4fe514c@n ews.xs4all.nl.. .[color=blue]
    >
    >
    > I have created a form wich makes it possible to send the information on[/color]
    the[color=blue]
    > form by e-mail with an attachment. After clicking the button i receive the
    > following error
    >
    > Warning: SAFE MODE Restriction in effect. The script whose uid is 528 is[/color]
    not[color=blue]
    > allowed to access / owned by uid 0 in
    > /customers/meander/www/werken_leren/sollform/upload.php on line 43
    >
    > this is line 43:
    >
    > move_uploaded_f ile($_FILES['file']['tmp_name'], $filepath);
    >
    > what can be the problem
    >
    > thanks for helping me.
    >
    > regards
    >
    > roy
    >
    > Holland
    >
    >[/color]


    Comment

    Working...