logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How to create a basic text file in php?


  • Correct Answer
  • $filename = "/home/user/guest/newfiletxt"; $file = fopen( $filename, "w" ); if( $file == false ) { echo ( "Error in opening new file" ); exit(); } fwrite( $file, "This is a simple test\n" ); fclose( $file ); 

  • Tags: IT Trainer

    Technology problems


    Search Results


    • 1. What's the difference between Session and Cookie?
    • Discuss
    • 2. What is the purpose $_PHP_SELF variable?
    • Discuss
    • 3. What's the difference between GET() and POST() method?
    • Discuss
    • 4. What is the difference between _construct() and _destruct() methods in php?
    • Discuss
    • 5. What is the difference between the functions unlink and unset in PHP?
    • Discuss
    • 6. What is ANALYZE command used for?
    • Discuss
    • 7. What are the uses of synonyms?
    • Discuss
    • 8. What are Cursors? Explain Types of cursors in PL/SQL
    • Discuss
    • 9. What are PL/SQL Subprograms? What are its Advantages ?
    • Discuss
    • 10. What is a Trigger? Explain Types of PL/SQL Triggers.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment