Üye Bilgileri
Nick:ccinej
İsim:Cihat Yürük
Web sayfası:
Cinsiyet:Erkek
İmza:
Konu sayısı:1
Cevap sayısı:1
Kaç günlük üye7
Son yazdığı Php kodları mesajları
peki bunda neleri değişecez?
Zaman2014-03-23 17:16:18
Php upload
merhaba bi sorum olacak resim yüklerken boyutlandırma nasıL yapacam. Yardım edebilir eat? kod aşağıda nereyi değişmem Gerekiyor? [QUOTE] <? PHP(".. / ayarlar.php") içerir;if ($ _SESSION ['gidenemlak1'] == "") {header ('Location:. / ekle.php');}$ Gidici = $ _SESSION ['gidenemlak1'];if (isset ($ _POST)) {fonksiyonu yükleyici ($ filefield, $ limit, $ klasörü) {if (($ _FILES [$ filefield] ["type"] == "image / gif")| | ($ _FILES [$ Filefield] ["type"] == "image / jpeg")| | ($ _FILES [$ Filefield] ["type"] == "image / png")){if (($ _FILES [$ filefield] ["size"] <$ limit)) {$ Dosya = getUniqueName (). $ _FILES [$ Filefield] ["name"];(move_uploaded_file ($ _FILES [$ filefield] ["tmp_name"], eğerrealpath (".. /"). "/". $ Klasörü. $ Dosya)) {$ klasörünü dönmek. $ Dosya;{} Else"1" return;}{} Else"1" return;}{} Else"1" return;}}fonksiyonu getUniqueName () {dönüş substr (md5 (uniqid (rand (), true)), 1,10);}$ Dosyayolu = "resimler /";$ Resim1 = yükleyici ("resim1", 2048 * 1024, $ dosyayolu); if ($ resim1 == "1") {{} Elseif (mysql_query ("INSERT INTO Resimler (emlak, resim) ('".. $ Resim1"' ".. $ Gidici" ') DEĞERLER "));header ('Location: ./adim1.php');}}><html> <head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title> Emlak Yönetim </ title><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"> </ script><script>fonksiyonu adminformil (ail){. $ ('# Formilce') html ("Yükleniyor ..");$. Ajax ({yazın: 'POST',url: "/ aformilceleri.php."veri: "il =" + ail + "",success: function (ail) {. $ ('# Formilce') html (ail);}});}</ Script> <script>fonksiyonu resetce (ilcim){. $ ('# Formilce') html ("Kaldırılıyor ..");$. Ajax ({yazın: 'POST',url: "/ aformilceleri.php."veriler: "il =" + + ilcim "",success: function (ilcim) {$ ('# Formilce'). Html ("<select class='leftboxsearch' name='ilce' id='ilce'> <seçenek değeri = '<? = $ Tespitci [' Ilce ']?>'> <? ? = $ tespitci ['Ilce']> </ option> </ select> ");}});}</ Script> </ Head> <body style="background:url(../images/panelici.png) üst orta repeat-x;" topmargin="0"> <div align="center"><table border="0" width="960" cellspacing="0" cellpadding="0" height="45"><tr><td width="50%"> <font FACE="Tahoma" size="4" color="#ffffff"> <b>Yönetici </ b> Paneli </ font> </ td><td width="86"> </ td><td width="222"><div align="right"><table border="0" width="130" cellspacing="0" cellpadding="0" height="25" background="../images/ex.png"><tr><td width="35" height="25"><p align="center"><img border="0" src="../images/lgt.png" width="32" height="25"> </ td><td width="107" height="25"><font FACE="Tahoma" style="font-weight: 700" size="1" color="#ffffff"> </ Font> <a rel="nofollow nofollow" href="index.php?form=cikis" style="text-decoration: none"><font color="#ffffff"> FACE="Tahoma" style="font-weight: 700" size="1">Oturumu kapat </ font> </ a> </ td></ Tr></ Table></ Div></ Td></ Tr></ Table></ Div><div align="center"><table border="0" width="960" cellspacing="0" cellpadding="0" height="368" bgcolor="#FFFFFF"><tr><td valign="top" align="center"><table border="0" width="940" cellspacing="0" cellpadding="0" height="261"><tr><td valign="top" align="left" width="192"> <br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m1.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="ayarlar.php" style="text-decoration: none"><font color="#000000"> Sitesi settingı </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m2.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="satiliklar.php" style="text-decoration: none"><font color="#000000"> Satılık Emlaklar </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m2.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="kiraliklar.php" style="text-decoration: none"><font color="#000000"> KİRALIK Emlaklar </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m2.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="ekle.php" style="text-decoration: none"><font color="#000000"> Yeni emlak EKLE </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m3.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="onaysizlar.php" style="text-decoration: none"><font color="#000000"> Dışardan Gelen Emlaklar </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m1.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="hizmetler.php" style="text-decoration: none"><font color="#000000"> Hizmetlerimiz </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m1.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="hakkimizda.php" style="text-decoration: none"><font color="#000000"> Hakkımızda </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m1.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="iletisim.php" style="text-decoration: none"><font color="#000000"> İletişim Bilgilerimiz </ font> </ a> </ font> </ td></ Tr></ Table><br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m1.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="sifre.php" style="text-decoration: none"><font color="#000000"> sifre Yönetimi </ font> </ a> </ font> </ td></ Tr></ Table> <br><table border="0" width="190" cellspacing="0" cellpadding="0" height="30" style="border: 1px solid #B5E61D; background-color: #EEFACB"><tr><td width="34"><p align="center"><img border="0" src="../images/m1.png" width="24" height="24"> </ td><td width="154"> <font face="Tahoma" size="2"><a href="ililce.php" style="text-decoration: none"><font color="#000000"> il Ilce Yönetimi </ font> </ a> </ font> </ td></ Tr></ Table></ Td><td valign="top" align="left" width="12"> </ td><td valign="top" align="left" width="736"><font face="Tahoma" size="2"> <br><b> <? = $ _SESSION ['gidenemlakmesaj1']> </ b> <br><br> <? if (isset ($ _SESSION ['durum']) && $ _SESSION ['makarnalık']! = "") {?> <font FACE="Tahoma" size="2" color="#336699"> <? = $ _SESSION ['makarnalık']> </ font> <?}?> <br> <? php$ Resimciler = mysql_query ("SELECT * resimler forumlar WHERE emlak = DAN '" $ gidici.. "'");while ($ Resimci = mysql_fetch_array ($ resimciler)){><Img border = "0" src = ".. / Görüntüle? Img = <? = $ Resimci ['resim']?> & W = 194 & h = 122"> <?}?> <br><form action="" method="post" enctype="multipart/form-data"><table border="0" width="100%" height="36" cellspacing="0" cellpadding="0"style="border-bottom:1px katı #EEFACB;"><tr><td width="257"> <font size="2"> Dilediğiniz Kadar resim yükleyebilirsiniz </ font> </ td><td width="425"><input type="file" name="resim1" id="resim1" size="20" style="background-color: #FFF"> <input type="submit" value="Fotoğrafı ekle"> </ form > </ td><td width="36"> </ td><td> </ Td></ Tr></ Table><p> <br><br><form action="satiliklar.php"> <input type="submit" value="Bu Kadar resim Yeterli islemi bitir" name="Gonder"> </ form> <br></ P></ P> </ Font> </ td></ Tr></ Table></ Td></ Tr></ Table></ Div> </ Body> </ Html><? Php$ _SESSION ['Makarnalık'] = "";>[/ QUOTE]
Zaman2014-03-21 20:11:35
Php resim yüklerken boyut küçültme sorunu

phpkodlari.com © 2009 Herkes Php öğrenecek
Web tasarım ve eğitim kaynağınız.