I have been working on an app on android that should grab an image from the sd card and then upload it to my server. I was able to get the pic to upload to a server using th
It looks like you were referencing a relative directory: var/www/images/ which, if your php file was in /var/www/ to begin with would be pointing to /var/www/var/www/images/ which I doubt is what you were intending.
Just change $target_path1 to make it an absolute path /var/www/images/