The following directory and file functions should
be used in Zend modules. They behave exactly like their C
counterparts, but provide virtual working directory support
on the thread level.
Zend Function | Regular C Function |
V_GETCWD() | getcwd() |
V_FOPEN() | fopen() |
V_OPEN() | open() |
V_CHDIR() | chdir() |
V_GETWD() | getwd() |
V_CHDIR_FILE() | Takes a file path as an argument and changes the current working directory to that file's directory. |
V_STAT() | stat() |
V_LSTAT() | lstat() |