.ph I/O API files
.ph I/O API: create ph file with its headers
create_ph_file: improved error infos
.ph I/O API: is_ph_file() + API fixes