Hi!
I have been developing some scripts on a windows machine and I now moving it to a freedsb system.
Now my move_uploaded_file doesn't seem to work.
This i s the original that I used when working under windows and IIS:
move_uploaded_file($HTTP_POST_FILES["banner_file"]['tmp_name'], $_SERVER['DOCUMENT_ROOT']."..\images\banners\".$HTTP_POST_FILES["banner_file"]['name']);
and when moving to unix I thought this would be correct:
move_uploaded_file($FILES['banner_file']['tmp_name'], $SERVER['DOCUMENT_ROOT']."../images/banners/".$HTTP_POST_FILES["banner_file"]['name']);
also... it seems that the unix machine only echoes out a path to the temp_file (Banner file: /var/tmp/phpfilW0w)
What am I doing wrong?
Regs
Summer