eror with copy function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saqqa
    New Member
    • Sep 2005
    • 3

    eror with copy function

    Hi every one and thanks for yr help and support on advance.

    Well, I have a problem with file transfer( browse and upload files).
    At my Web space all ok and works perfectly
    See this link plz http://khaals5.100webspace.net/upload.php

    But if I use the same code on my company web space I got this error

    Warning: copy() [function.copy]: open_basedir restriction in effect. File(/tmp/phpuPlPPU) is not within the allowed path(s): (/home/customers/webs/rmaus/) in /home/customers/webs/rmaus/upload.php on line 48
    Unknown error!

    Check this link plz http://www.rmaus.com.au/uploader.php

    Basically I use this simple copy command
    copy($HTTP_POST _FILES["filename"]["tmp_name"], "./".$_FILES["filename"]["name"]) ;

    I’m waiting yr great advice.
    Thanks again
  • TheMadMidget
    New Member
    • Oct 2006
    • 98

    #2
    Does that folder "/tmp" have permissions to write?

    Comment

    Working...