Forum Moderators: coopster
If you are specifying /images/cat.jpg, then you are actually telling the server to place the image in a folder at the root of the hard drive called "images." Instead you probably want to put the image in the /images/ directory inside of your web sites directory.
Try something like:
$_SERVER['DOCUMENT_ROOT'].'/images/'.$name_of_new_image.'.jpg';
You can read more on $_SERVER variables [php.net] in the manual. :)