I completely understand what you're saying (I have used Unix for 4 years), yet the problem still persists. I have not pre-appended my upload dir variable with a forward slash.
Also, the mp3 directory is located here: www.domain.com/mp3, not www.domain.com/hidden/mp3. But still, I understood what you were saying. I applied the same principle and it is still generating the same warning messges.
Understand. The main mp3 script is here: www.domain.com/hidden/mp3.php. Inside mp3.php is the require function that includes the mp3 upload script, which is located here: www.domain.com/hidden/include/php/upload_mp3.php. So, which file would be consider the calling script? mp3.php? Or upload_mp3.php?
It really doesn't matter because I have tested the variable in both situations and it still doesn't work. This isn't fair. Why isn't this working like it is suppose to?
I mean, I have tried 'mp3/', '../mp3/', '../../mp3/', '../../../mp3/', upwards to 7 of these things '../'.
And always, this is the error message I get:
Array ( [myfile] => Array ( [name] => ns bettergo 8.mp3 [type] => audio/mpeg [tmp_name] => /tmp/phpnf2toO [error] => 0 [size] => 105324 ) )
Warning: move_uploaded_file(../../../../../../../mp3/ns_bettergo_8.mp3): failed to open stream: No such file or directory in /home/.hajur/mensient/mensientertainment.com/hidden/includes/php/mp3_uploads.php on line 83
Warning: move_uploaded_file(): Unable to move '/tmp/phpnf2toO' to '../../../../../../../mp3/ns_bettergo_8.mp3' in /home/.hajur/mensient/mensientertainment.com/hidden/includes/php/mp3_uploads.php on line 83
What is going on here?