Functioning of functions for file manipulation

6

I know the syntax, the logic of the function. I'd like to know how this works in the background. For example, I gave the function fopen() , fclose() , fwrite() , what am I actually doing? Is it possible to write these functions at hand? As? If it is not possible, what happens then for me to be able to open files, close, etc ...?

Thank you!

    
asked by anonymous 23.09.2014 / 20:21

1 answer

3

PHP is written over C, so what these functions do is simply call fopen() , fclose() , and other functions of stdio.h of C.

So you can not directly access a file in the file system without using those functions that PHP provides.

If you want to learn more about how C reads a file, read this answer in the OS.

    
23.09.2014 / 23:18