English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Explain in detail of File handling functions.

Advertisements
Advertisements

Question

Explain in detail of File handling functions.

Answer in Brief
Advertisements

Solution

  • PHP Manipulating Files:
    PHP has several functions for creating, reading, uploading, and editing files.
  • PHP readfile() Function:
    The readfile() function reads a file and writes it to the output buffer.
  • PHP Open File – fopen():
    A better method to open files is with the fopen() function.
    This function gives you more options than the readfile() function.
  • PHP Read File – read():
    The fread() function reads from an open file.
  • PHP Close File – close():
    The fclose() function is used to close an open file.
  • PHP Create File – fopen():
    The fopen() function is also used to create a file.
  • Maybe a little confusing, but in PHP. a file is created using the same function used to open files.
  • PHP Write to File – write():
    The fwrite() function is used to write to a file.
shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Forms and Files - Evaluation - PART – I [Page 124]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 8 Forms and Files
Evaluation - PART – I | Q 5. | Page 124
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×