Basic filesystem operations for php