adding rootendpoing variable to all php examples.