heres the deal, on my reseller account I have this heirarchy for my drive space:
/blah.../www/updates/index.php
/updates is my subdomain which is password protected.
in index.php I have a form where I can upload pictures to /www/updates/images, I can upload pictures anywhere under /www/updates just fine, however since this directory is password protected, the public cannot view these pics if I reference this directory elsewhere in my site. So I decided to try and upload my pictures to a public folder at a higher level. I tried uploading my files from my php forms to /www/images using this code
$uploadpath=$_SERVER'DOCUMENT_ROOT'].'/www/images/';
$source = $HTTP_POST_FILES['file']['tmp_name'];
$dest = '';
$dest = $uploadpath.uniqid('news').'.jpg';
move_uploaded_file( $source, $dest );
however i receive no error, but no file uploads to this directory, but if i change $uploadpath to point to a folder withing the working directory "updates" it works fine.
I have permissions set on all folder, any ideas???? This is so bizarre, its like I cannot move up only down? And I need to move up sinc ehtis is a password protected folder and everything down is password protected.