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 8129283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:15:27+00:00 2026-06-06T08:15:27+00:00

So i have just moved everything from my localhost to a new online server

  • 0

So i have just moved everything from my localhost to a new online server to get it running. Obviously there are bound to be a few problems but this one i cannot sort out. I cannot upload any files but I could on localhost. I spoke to one of the server companies support team and we have checked all php.ini, htaccess etc and everything is fine. The upload max and post max is way higher than it needs to be. The uploads folder has all the correct permisions. Moving the uploaded file is failing completely and I do not know why.

Here is the image upload script (well the importan part):

$actual_image_name = time().substr(str_replace(" ", "_", $txt), 5).".".$ext;
$tmp = $_FILES['photoimg1']['tmp_name'];
if(move_uploaded_file($tmp, $path.$actual_image_name))
{

    mysql_query("UPDATE members SET image1='../imageuploads/$actual_image_name' WHERE username='$username' AND password ='$pass' AND artist='Y'");

    echo "<p1><img src='../imageuploads/".$actual_image_name."'  class='imageright1'></p1>";

}else
    echo "<p1>failed</p1>";

The error message I get is this:

PHP Warning:
move_uploaded_file(../imageuploads/13403748125_277695398952342_104081122980438_707146_2014948057_n.jpg):
failed to open stream: No such file or directory in
/var/www/vhosts/lvps217-199-163-188.vps.webfusion.co.uk/httpdocs/imageupload/ajaximage1.php
on line 39, referer: http:/217.199.163.188/artistupdate.html

There is probably something very simple that I havent done but i cannot figure out for the life of me what it is. The image upload script is fairly simple but the audio upload script is a bit more complex so haven’t included it. They both get the same error from the same place anyhow.;

  • 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-06-06T08:15:30+00:00Added an answer on June 6, 2026 at 8:15 am

    Your update query is using ../imageuploads, yet your generated path for the move command is simply imageuploads, so you’re probably not pointing the move command at the right directory.

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

Sidebar

Related Questions

I have just moved a site from a dedicated server to a GoDaddy shared
I have just done the website migration from the old server to the new
I have just moved the dev site over to my linux server for production
I have just moved from using php mvc frameworks to rails and have been
does anybody have experience with OmniAuth & Facbeook? I just moved from using a
I have the following error with my ASP.NET web site. I have just moved
i have a problem just as title, and the http-status is 302 Moved Temporarily.
I have just installed composer in my /usr/bin folder, so when from that folder
I am currently working on a localhost database and I am moving everything online
I just moved my Wordpress site to a different server and url. All the

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.