Kod:
if(!$posterr) else $uniq = substr( md5(uniqid (rand())), 0, 10 ); $ext = strtolower( substr($_FILES['attached']['name'], -3)); move_uploaded_file($_FILES['attached']['tmp_name'], $att_path."/".$uniq.".".$ext ); $strQuery = "INSERT INTO images SET "; $strQuery .= "filename='".$uniq.".".$ext."',"; $strQuery .= "ipaddress='',"; $strQuery .= "date='".time()."',"; $strQuery .= "pkey='',"; if($myuid)',"; } $strQuery .= "status='1'"; $result = mysql_query($strQuery) or die( mysql_error() ); $aid = mysql_insert_id(); if($aid)else{ $step = 1;

yukarıdaki bulunan kod ta benim yapmaya calıştıgım image nin yukleme yerini deyiştirmek. amacım bu.

move_uploaded_file($_FILES'attached''tmp_name', $att_path."/".$uniq.".".$ext );

benim burda istedigim subdomaine yuklemetmek resmi ,boyle olunca sadece o hosta yukleye biliyorum. ornek olarak
move_uploaded_file($_FILES'attached''tmp_name', ftp://yuklenecek_olan.domain.com/$att_path."/".$uniq.".".$ext );

şeklinde gibi birşey

$att_path:yuklenecek klasor
$uniq:resmin adı
$ext:resmin uzantısı