My Following code is working fine when I set
$target = \"size_images/14_20131216231522_cashew.jpg\";
But Not Working
Try using:
$target = $_SERVER['DOCUMENT_ROOT']."/size_images/14_20131216231522_cashew.jpg";
If you want to upload from subdomain.mydomain.com to mydomain.com simply put the upload script on mydomain.com and then use a relative path.