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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:59:06+00:00 2026-05-24T09:59:06+00:00

I took this basic upload file script from php.net and it is giving two

  • 0

I took this basic upload file script from php.net and it is giving two warning before it move the image to the directory.

Warning:
move_uploaded_file(public_html/your/inventory_images/penguin.jpg)
[function.move-uploaded-file]: failed to open stream: No such file or
directory in /home3/ny/public_html/your/anotherformsale.php on line 73

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable
to move ‘/var/tmp/phpnIxYMK’ to
‘public_html/your/inventory_images/penguin.jpg’ in
/home3/ny/public_html/your/anotherformsale.php on line 73

I am getting this warning after I have tried to upload a image with a basic move_upload script below.

 <?php    
  $uploaddir ='public_html/your/inventory_images/';//<----This is all I
     changed $uploadfile = $uploaddir . basename($_FILES['file']['name']);

     echo '<pre>'; if (move_uploaded_file($_FILES['file']['tmp_name'],
     $uploadfile)) {
         echo "File is valid, and was successfully uploaded.\n"; } else {
         echo "Possible file upload attack!\n"; }

     echo 'Here is some more debugging info:'; print_r($_FILES);

     print "</pre>"; 
 ?>
  • 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-24T09:59:06+00:00Added an answer on May 24, 2026 at 9:59 am

    According to warning message(No such file or directory in /home3/ny/public_html/your/anotherformsale.php on line 73) the path you are using is wrong.

    it should be set to

    $uploaddir ='/home3/ny/public_html/your/inventory_images/';
    

    After confirmation of path you should also make sure the destination directory is writable.

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

Sidebar

Related Questions

I called this function once per frame and it took my FPS from >400
I know this question has been asked before, and I took a look at
I've made a basic interpreter before in C with a preprocessor that took a
OK, this is probably pretty basic stuff, but it took me quite some time
As basic as this is, it took me a few minutes to figure out,
This took me a while to figure out and I found the answer on
I took the plunge this afternoon and began studying LINQ, so far just mucking
I want to display a This page took x seconds widget at the bottom
I took a look at this answer and it goes in part to solving
This semester, I took a course in computer graphics at my University. At 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.