Hello, I am expert in PHP and Server related works, I have checked your codes and i found the exact issue., I will help you to fix the issue.,... I have already did the similar work earlier, i will do it in within a few mins.
I have 7+ years experience in working with PHP, WebServer Security, Apache, Nginx, Lighttpd, Linux Server, Mac and Maintenance, (CentOS, Ubuntu, Debian) Server, and Cpanel, etc., etc.
Please message me with details, i will do it in very less time,.
Regards
-
Munish