2080 7

BIT301 ยท 2080 ยท 5 marks

Write a PHP program to write on a file.

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

Web Technology IIChapter 9: File Handling and Data FormatsFile writing operations

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(...