logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain include(), include_once, require() and require_once.


  • Correct Answer
  • include() The include() function takes all the content in a specified file and includes it in the current file If an error occurs, the include() function generates a warning, but the script will continue execution include_once() File will not be included more than once If we want to include a file once only and further calling of the file will be ignored then we have to use the PHP function include_once() require() The require() function is identical to include(), except that it handles errors differently The require() generates a fatal error, and the script will stop require_once() The required file is called only once when a page is open and further calling of the file will be ignored 


  • Technology problems


    Search Results


    • 1. How do you destroy a particular or all Sessions?
    • Discuss
    • 2. What is a Session?
    • Discuss
    • 3. What are the differences between GET and POST methods in form submitting?
    • Discuss
    • 4. What is the functionality of md5 function in PHP?
    • Discuss
    • 5. How can we find the number of rows in a result set using PHP?
    • Discuss
    • 6. How can we extract string "abc.com" from a string "https://info@abc.com" using regular _expression of php?
    • Discuss
    • 7. What are the different types of errors in php?
    • Discuss
    • 8. What is the functionality of the function strstr and stristr?
    • Discuss
    • 9. What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
    • Discuss
    • 10. What are encryption functions in PHP?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment