logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How to set cookies?


  • Correct Answer
  • setcookie('variable','value','time'); variable - name of the cookie variable value - value of the cookie variable time - expiry time Example: Test - cookie variable name $i - value of the variable 'Test' time()+3600 - denotes that the cookie will expire after an one hour 


  • Technology problems


    Search Results


    • 1. What are encryption functions in PHP?
    • Discuss
    • 2. What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
    • Discuss
    • 3. What is the functionality of the function strstr and stristr?
    • Discuss
    • 4. What are the different types of errors in php?
    • Discuss
    • 5. How can we extract string "abc.com" from a string "https://info@abc.com" using regular _expression of php?
    • Discuss
    • 6. How can we know the number of days between two given dates using php?
    • Discuss
    • 7. How to store the uploaded file to the final location?
    • Discuss
    • 8. Explain $_FILES Superglobal Array.
    • Discuss
    • 9. What is Constructors and Destructors?
    • Discuss
    • 10. What is PHP's configuration file called?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment