$fullpath = 'http://localhost/flashbb/';
$uploadtime=time();
$ext = str_replace('.', '', strrchr($fileupload['name'],'.'));
if(strstr($fullpath, 'http://localhost')) {
$final_path = 'C:\\phpdev423\\www\\flashbb\\files\\'.$uploadtime.'.'.$ext;
} else {
$final_path = $settings['attachdir'].'/'.$uploadtime.'.'.$ext;
}
move_uploaded_file($fileupload, $final_path);
hi this is a snippet of code which should upload a file...
everything works except the move_uploaded_file
im running the script locally, is there any way how to get an absolute path for the move_uploaded_file and what is wrong with my script...