Yani şu şekilde mi :
if ($resim = copy($_FILES["dosya"]["tmp_name"], $dizin . basename($_FILES["dosya"]["name"])))
?????
EDİT: Yukardaki gibi yaptım ama şööle bi hata verdi Warning: copy(): open_basedir restriction in effect. File(/resimler/pot.jpg) is not within the allowed path(s): (/home/iresimlerim/usr/share/php:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/resimlerim/public_html/resim_ekle.php on line 180
Warning: copy(/resimler/pot.jpg): failed to open stream: Operation not permitted in /home/resimlerim/public_html/resim_ekle.php on line 180
Islem basarisiz.
Galiba yanlış yaptım