SETUP:
Windows XP Pro
Apache 2.0.45
PHP 4.3.2
MySQL 4.0.1

I'm having problems uploading to mapped drives from my server. I can upload to directory on my localhost, I cannot upload to a mapped drive on another machine in my network. Here is an example:

Working:

if( move_uploaded_file($_FILES["$temp"]['tmp_name'], "uploads/".$_FILES["$temp"]['name']) )
     $msg = "Upload Successful";
else $msg = "Error";

Not Working:

if( move_uploaded_file($_FILES["$temp"]['tmp_name'], "g:\\App\\Processing\\".$_FILES["$temp"]['name']) )
     $msg = "Upload Successful";
else $msg = "Error";

I've tried reversing my \ for /. My mapped drive is using an Administrator account to maintain the connection, so file sharing shouldn't be a problem.

Any Suggestions? Thanks in advance!

    negatory...

    I'm sorry I mad a posting error I was using \ not \, but that still does not work. I get an error as though the destination does not exist, but it does and the link is active.

    Any more suggestions?

      are you sure the web server has access to that directory?

        4 days later

        i'm positive my server has access to the directory. Still looking for help if anyone can offer it. Thanks!

          Write a Reply...