Results 1 to 5 of 5

Thread: PHP: move_uploaded_file error

  1. #1

    PHP: move_uploaded_file error

    Hi. I have the following code:
    Code:
    $timp=time();
    $file_dir="./upload".$timp;
    mkdir($file_dir, 0777);
    foreach($_FILES as $fisier=>$fisiere)
     {if(is_uploaded_file($fisiere['tmp_name']))
      {move_uploaded_file($fisiere['tmp_name'], "$file_dir/$fisiere[name]");}}
    Well...that is just part of the code...Anyway...After I use the form, I get the following error:
    Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid/gid is 189252/189236 is not allowed to access /home/www/free/uv.ro/rudolf.uv.ro/php/upload1256583575 owned by uid/gid 81/81 in /home/www/free/uv.ro/rudolf.uv.ro/php/upload.php on line 9
    Does anyone know what the problem is? Thanks you.

    PS: line 9 is the last line of code I copied, and I'm using post to submit the form.

  2. #2
    turn off safe mode in your php.ini
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

  3. #3
    Quote Originally Posted by simplistik View Post
    turn off safe mode in your php.ini
    Yeah...that's not an option...seeing as I don't have access to php.ini on my server...

  4. #4
    Quote Originally Posted by speedy_rudolf View Post
    Yeah...that's not an option...seeing as I don't have access to php.ini on my server...
    Give your host a call, or open a ticket. I'm sure they would be more than willing to help you out with that.
    <!--0.o--> don't tell the elf

  5. #5
    could try to do it in the .htaccess
    Code:
    php_flag safe_mode off
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012