Mailinglisten-Archive |
probier mal das hier und es geht auf jeden fall ! die upload var heißt hier $userfile $tmpdir = get_cfg_var("upload_tmp_dir"); if(isset($WINDIR)){ if(ereg("\\\\",$userfile)){ $userfile = stripslashes($userfile); } if($tmpdir) { $lps = strrpos($PATH_TRANSLATED,"\\")+1; $docroot = substr($PATH_TRANSLATED,0,$lps); copy($userfile,$docroot.$userfile_name); unlink($userfile); // be sure :-) } else { rename($userfile,$userfile_name); } } else if($tmpdir){ $lps = strrpos($PATH_TRANSLATED,"/")+1; $docroot = substr($PATH_TRANSLATED,0,$lps); copy($userfile,$docroot.$userfile_name); unlink($userfile); } else { rename($userfile,$userfile_name); } } kiri (schiri) > "Unable to open '\\php2' for reading":Unknown > Error > TIA > /Ralf
php::bar PHP Wiki - Listenarchive