Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7554123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:15:10+00:00 2026-05-30T11:15:10+00:00

$tmpUploadFolder = C:\\www\\intranet\\uploads; //$finalUploadFolder = file:////server//photos//overwrite; $finalUploadFolder = file://server/photos/overwrite; //$finalUploadFolder = \\\\server\\photos\\overwrite; //$finalUploadFolder =

  • 0
$tmpUploadFolder = "C:\\www\\intranet\\uploads";
//$finalUploadFolder = "file:////server//photos//overwrite";
$finalUploadFolder = "file://server/photos/overwrite";
//$finalUploadFolder = "\\\\server\\photos\\overwrite";
//$finalUploadFolder = "\\server\photos\overwrite";
//$finalUploadFolder = "P:\\overwrite";
//$finalUploadFolder = "P:/overwrite";

$from = $tmpUploadFolder . "\\" . $_REQUEST['ext'];
$to = $finalUploadFolder. "\\" . $_REQUEST['ext'];
copy($from, $to);

I am trying to do a PHP upload using a jquery tool. The Jquery tool nicely places the file onto the PHP upload dir before the page submit. So i want to (upon post of the form) quickly move the file from it’s tmp folder location (it’ll already be there you see) to it’s final destination on an image store server (I use the _REQUEST[‘ext’] variable to hold the filename jquery held.

Rest assured these paths are good they work lovely in dos. As you can see I have tried every known unc syntax I know.

I cannot for the life of me get php to work I have written a VBS “copy . file” and tried to trigger it under whost.exe via system() in php, i’ve downloaded the oldeskool runas.exe and tried to get it to copy via system(), I have used unc paths and network shares, and mapped network drives, I have made apache service “log on as ” administraor and even a custom adhoc new user made just for this and given it full permissions

It works fine if I change P:\ to C:\

I KNOW IT’S EFECTIVE PERMISSONS RE: APACHE – BUT WE DO NOT RUN ACTIVE DIRECTORY AND I CAN’T GET IT TO WORK

it simply will not let me copy this file onto a network and this is a major major MAJOR problem child for me.

Is there a solution? If you are going to help me with things like “it’s file permissions” then I am going to need a break down of exact and careful instructions because I am pulling my hair out because I know it’s file permissions rights but I just can’t get it to work

I am tired now.. please help?


  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:15:12+00:00Added an answer on May 30, 2026 at 11:15 am

    ok I figured it out so for the benefit of those going after me here is the solution THAT WORKS

    1.make sure php windows “apache2.2” service is running as a administrator user (I made a user called apacheusr and gave it a password and popped it into local administrators) you do this by right clicking properties on the “apache2.2” service in administrative tools->services and going to the logon tab->this account and picking the apacheusr

    2.because I don’t run active directory I made this apacheusr user on BOTH machines (phpserver/ imageserver) as a local administrator user and gave them BOTH the same username password and tick password never expires.

    3.I then log in/out at least once onto windows with both these accounts. (don’t ask me why but it seemed to help, it stopped the runasexe –that I gave up with– moaning in dos)

    4.finally on the php server right click share the destination folder on imageserver and make damn well sure this apacheusr can log in to that folder. The simplest way to do this is when you log/in/out as apacheusr on your php server and try to go to your image server folder – you then need to be on the imagesever and tick everything correctly in the share/permissions bit
    THEN the final bit is (where _REQUEST[‘ext’] is a file name EG: “pic.jpg”)

    $tmpUploadFolder = "C:\\www\\intranet\\uploads"; 
    $finalUploadFolder = "\\\\server\\photos\\overwrite"; 
    $from = $tmpUploadFolder . "\\" . $_REQUEST['ext']; 
    $to = $finalUploadFolder. "\\" . $_REQUEST['ext']; 
    copy($from, $to); 
    

    The above code works!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.