prototypes for php functions