php function does not work on hosting - Kevin Powell - Community