Jump to content

move_uploaded_file


Recommended Posts

Hello,i'm trying to move uploaded file the problem is i want to move to another site but it's under the host so my host directory looks like that /var/www/vhosts site1 site2 site3 site4we are running the four sites from 1 back end which is site onewhen i use for site 1 $uploadFile = '/var/www/vhosts/site1/images/' . $_FILES[$image['table']]['name']; @move_uploaded_file($_FILES[$image['table']]['tmp_name'], $uploadFile);it works finenow i need to move it to site2 $uploadFile = '/var/www/vhosts/site2/images/' . $_FILES[$image['table']]['name']; @move_uploaded_file($_FILES[$image['table']]['tmp_name'], $uploadFile);now is not workingthe admin file which process the files uploaded is in site1 i also changed the writing permission exactly the same for all sitesplease helpthanks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...