1.

What is the difference between fopen() and fclose()?

Answer»

 

These both are PHP INBUILT function which is used to open & close a FILE which is pointed file pointer.

S.nofopen()fclose()
1.This method is used to open a file in PHP.This method is used to close a file in PHP. It returns true or false on success or failure.
2.$myfile = fopen("index.php", "r") or die("UNABLE to open file!");$myfile = fopen("index.php", "r");


Discussion

No Comment Found