I want upload image to sever in iphone app I am using following code for PHP
but using this code i get error displayed on page when i run localhost/upload.php;
if you think error in php code then first try this print_r($_FILES); and see what did you get in the $_FILES['userfile']
print_r($_FILES);
$_FILES['userfile']