I am having problems with a picture uploading script.
I know there are hundreds of the same questions, but I haven\'t found the one that would be work for me.
First , open PHP error_report by adding two line on top of your code, see if there is a error coming from chmod:
ini_set('display_errors', true); error_reporting(E_ALL);
Make sure your WebServer has the permission to that directory, my guess is the WebServer don't have permission.