Certify and Increase Opportunity.
Govt. Certified PHP-Developer

Deleting a file

copy$my_file = ‘file.txt’;

Check end of file – The feof() function checks if the “end-of-file” (EOF) has been reached. The feof() function is useful for looping through data of unknown length. PHP cannot read from files opened in w, a, and x mode! An example –
if (feof($file)) echo “End of file”;