logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain the working with directories using opendir(), readdirs(), closedir() along with examples.


  • Correct Answer
  • Opendir():- It opens the directory This function returns a directory stream on success and FALSE and an error on failure Syntax: Opendir(directory, context) Context is a set of options that can modify the behavior of a stream Example: opens sample directory $dir = opendir("directory"); Readdir(): It returns an entry from a directory handle opened by opendir() Syntax: Readdir(dir_stream) Example: $file = readdir($dir); closedir(): It closes a directory handle opened by opendir() Syntax: closedir(dir_stream) Example: $file = close($dir); 


  • Technology problems


    Search Results


    • 1. Explain the changing file permission and ownership using PHP's chmod() function.
    • Discuss
    • 2. How can we encrypt the username and password using PHP?
    • Discuss
    • 3. What Is a Session in PHP?
    • Discuss
    • 4. How to set cookies in PHP?
    • Discuss
    • 5. Explain when to use GET or POST. Provide example for both the ways.
    • Discuss
    • 6. What is the difference between using copy() and move() function in php file uploading?
    • Discuss
    • 7. What is the difference between mysql_connect and mysql_pconnect?
    • Discuss
    • 8. What do you mean by a deadlock?
    • Discuss
    • 9. What is Control File used for?
    • Discuss
    • 10. List the various Oracle database objects.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment