logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the difference between using copy() and move() function in php file uploading?


  • Correct Answer
  • Copy() makes a copy of the file It returns TRUE on success It can copy from any source to destination Move simply Moves the file to destination if the file is valid While move can move the uploaded file from temp server location to any destination on the server If filename is a valid upload file, but cannot be moved for some reason, no action will occur 


  • Technology problems


    Search Results


    • 1. Explain the working with directories using opendir(), readdirs(), closedir() along with examples.
    • Discuss
    • 2. Explain the changing file permission and ownership using PHP's chmod() function.
    • Discuss
    • 3. How can we encrypt the username and password using PHP?
    • Discuss
    • 4. What Is a Session in PHP?
    • Discuss
    • 5. How to set cookies in PHP?
    • Discuss
    • 6. What is the difference between mysql_connect and mysql_pconnect?
    • Discuss
    • 7. What do you mean by a deadlock?
    • Discuss
    • 8. What is Control File used for?
    • Discuss
    • 9. List the various Oracle database objects.
    • Discuss
    • 10. Explain i) Rename ii) Alias.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment