yanlış yere açtıysam affola...

Selamun Aleykum... bir konuda takıldım da yardımınızı istemek zorunda kaldım... elimde ücretsiz dağıtılan bir kurumsal script var... slayt alanı için resim upload edebiliyoruz ve fakat upload ederken slayt alanının büyüklüğüne kendisi uyum sağlatmıyor.. bunu nasıl aşabilirim ? aşağıya scriptte bulunan upload.php ve yukle.php kodlarını yazdım... link verme yasağı olup olmadığını bilmediğim için script dağıtan siteyi eklemedim... şimdiden teşekkür ettim...

ölçeklendirilecek boyut : 900x360 olup resmi kırpma değil bu boyutlara göre tekrardan boyutlandırma olması gerek

upload.php

<?php session_start(); if(isset($_SESSION['firkurum'])){ ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<form action="yukle.php" method="post" enctype="multipart/form-data">


<div align="center">


<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><b>Resmi Secin :</b></td>
		<td>&nbsp;<input type="file" name="dosya" size="20"></td>
	</tr>
	<tr>
    <td></td>
		<td><br /><input type="submit" value="Yukle" style="width:220px;"></td>
	</tr>
</table>


</div>

</form>
<?php }else{ echo '<meta http-equiv="refresh" content="0;URL=http://www.google.com.tr">'; } ?>

yukle.php

<?php session_start(); if(isset($_SESSION['firkurum'])){ 

$kaynak    = $_FILES["dosya"]["tmp_name"];
$dosyaadi   = $_FILES["dosya"]["name"];
$dosyatipi = $_FILES["dosya"]["type"];
$dboyut    = $_FILES["dosya"]["size"];
$hedef     = "resimler";

$uzanti        = substr($dosyaadi, -4);

$yeniad        = substr(md5(uniqid(rand())), 0,10);

$yeniresimadi  = $yeniad.$uzanti;


  $yukle = move_uploaded_file($kaynak,$hedef.'/'.$yeniresimadi);
 
  
  echo "<center><b>Resiminiz yuklenmistir!</b><br></center><br>";
  echo "<center><img src='$hedef/$yeniresimadi' width='150' height='150'></center><br>";
  echo "<center><b>Link</b><br> <label>http://".$_SERVER['HTTP_HOST']."/upload/$hedef/$yeniresimadi</label></center>";	
 echo "<br><center><a href='javascript:window.close()'>Pencereyi Kapat</a></center>";

}else{ echo '<meta http-equiv="refresh" content="0;URL=http://www.google.com.tr">'; } ?>