2080 7

Web Technology II20805 marksFile writing operations

Write a PHP program to write on a file.

Write a PHP program to write on a file. [5]

PHP provides built-in functions to handle file operations. The most common approach uses fopen(), fwrite(), and fclose() functions. --- Function Description ----------------------- fopen(filename, mode) Opens a file; returns a file handle fwrite(handle, string) Writes a string to the file fclose(...

Up nextWrite a PHP program to illustrate the use of exception handling.