some essential PHP code for future projects