Remove Apache+PHP Info
Edit or Add ServerTokens Prod ServerSignature Off httpd.conf expose_php = Off php.ini Restart Apache service
Okumaya devam etEdit or Add ServerTokens Prod ServerSignature Off httpd.conf expose_php = Off php.ini Restart Apache service
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
<?php if(count($_POST)>0) { if(isset($_FILES["dosya"])) { if($_FILES["dosya"]["type"]=="image/png") { $link = $_FILES["dosya"]["tmp_name"]; $size=getimagesize($link); $genisliky=(int)($size[0]/2); $yuksekliky=(int)($size[1]/2); $src= imagecreatefrompng($link); $renk = imagecolorallocate($src, 255, 0, 0); //imagestring($src, 10, $genisliky, $yuksekliky, // "DENEME", $renk); imagettftext($src, 50, 45, $genisliky, $yuksekliky, $renk, "./abc.ttf", "DENEME"); imagepng($src,"yeni.png"); imagedestroy($src); echo "resim kaydedildi!"; } } } ?> <html> <head> <title>Dosya Yükleme</title> <meta charset="UTF-8"> </head> <body> <form method="post" enctype="multipart/form-data"> Dosya Seçin: <input type="file" name="dosya" id="dosya" required><br> <input type="submit" name="gonder" value="Gönder"> </form> </body> </html> |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 13.12.2017 * Time: 19:38 */ $filename="test.jpg"; $im = imagecreate(500, 500); imagecolorallocate($im, 255, 255, 255); $renk=imagecolorallocate($im,0,0,0); imageline($im,0,500,500,0,$renk); imageline($im,0,0,500,500,$renk); imageline($im,250,0,250,500,$renk); imageline($im,0,250,500,250,$renk); imagejpeg($im,$filename); imagedestroy($im); echo "Dosya olusturuldu!"; |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 13.12.2017 * Time: 19:14 */ //phpinfo(); // resimle ilgili bilgiler //$boyutlar = getimagesize("img.jpg"); //var_dump($boyutlar); //echo $boyutlar[0]."-->".$boyutlar[1]; header("Content-type: image/png"); $dogrulama=strtoupper(substr(md5(rand(0,9999999)),0,6)); $im = imagecreate(500, 500); $artalan = imagecolorallocate($im, 255, 255, 255); $önalan = imagecolorallocate($im, 255, 0, 0); imagestring($im, 10, 150, 250, $dogrulama, $önalan); imagepng($im); imagedestroy($im); |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$url="https://www.ntv.com.tr/teknoloji.rss"; $veriler = new SimpleXMLElement($url,0,true); foreach($veriler as $key=>$data) { if($key=="entry") { echo "<a href='".$data->id."' target='_blank'>".$data->title."</a><br>"; } } |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 07.12.2017 * Time: 19:53 */ $link="http://www.tcmb.gov.tr/kurlar/today.xml"; $data = new SimpleXMLElement($link,0,true); foreach ($data as $key=>$value) { echo $value->Isim."--> Alış:".$value->ForexBuying."--> Satış:".$value->ForexSelling."<br>"; } |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
<html> <head> <meta charset="UTF-8"> <title></title> </head> <?php function getir($key) { if (isset($_POST[$key]) && strlen($_POST[$key])>0) return $_POST[$key]; return false; } $dolartl = ""; $altintl = ""; $miktar = ""; $sonuc = ""; if (count($_POST) == 5) { $dolartl = getir("dolartl"); $altintl = getir("altintl"); $miktar = getir("miktar"); $secim1 = getir("secim1"); $secim2 = getir("secim2"); if (!($dolartl && $altintl && $miktar && $secim1 && $secim2)) { $sonuc="veri girisi hatali"; } else { if($secim1!=$secim2) { include "kur.php"; $kur = new kur($dolartl,$altintl); $tip=$secim1.$secim2; $deger=$kur->donustur($tip,$miktar); $sonuc=$secim1."(".$miktar.")-->".$secim2."<br>"; $sonuc.="Sonuç:".$deger; } else $sonuc="secimler ayni!"; } } ?> <body> <form method="POST"> <table> <tr> <td>1$:</td> <td><input type="text" name="dolartl" value="<?php echo $dolartl; ?>">TL</td> </tr> <tr> <td>1gr Altın:</td> <td><input type="text" name="altintl" value="<?php echo $altintl; ?>">TL</td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td>Miktar:</td> <td><input type="text" name="miktar" value="<?php echo $miktar; ?>"></td> </tr> <tr> <td> Seçim-1: </td> <td> <input type="radio" name="secim1" value="tl" checked>TL <input type="radio" name="secim1" value="dolar">Dolar <input type="radio" name="secim1" value="altin">Altın </td> </tr> <tr> <td> Seçim-2: </td> <td> <input type="radio" name="secim2" value="tl" checked>TL <input type="radio" name="secim2" value="dolar">Dolar <input type="radio" name="secim2" value="altin">Altın </td> </tr> <?php if (strlen($sonuc) > 0) echo "<tr><td colspan='2' style='text-align: center; color: #ff6144;'>" . $sonuc . "</td></tr>"; ?> <tr> <td colspan="2" style="text-align: center"><input type="submit" value="Çevir"></td> </tr> </table> </form> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 06.12.2017 * Time: 20:37 */ class kur { public $dolartl; public $altintl; public function __construct($dolartl,$altintl) { $this->dolartl=$dolartl; $this->altintl=$altintl; } public function donustur($tip,$miktar) { switch ($tip) { case "tldolar": return $this->tl2dolar($miktar); case "tlaltin": return $this->tl2altin($miktar); case "dolartl": return $this->dolar2tl($miktar); case "altintl": return $this->altin2tl($miktar); case "dolaraltin": return $this->dolar2altin($miktar); case "altindolar": return $this->altin2dolar($miktar); default: return "Seçimler Uygun Değil!"; } } public function tl2dolar($miktar) { $sonuc=$miktar/$this->dolartl; return round($sonuc,2); } public function dolar2tl($miktar) { $sonuc=$miktar*$this->dolartl; return round($sonuc,2); } public function tl2altin($miktar) { $sonuc=$miktar/$this->altintl; return round($sonuc,2); } public function altin2tl($miktar) { $sonuc=$miktar*$this->altintl; return round($sonuc,2); } public function dolar2altin($miktar) { $tl=$this->dolar2tl($miktar); return $this->tl2altin($tl); } public function altin2dolar($miktar) { $tl=$this->altin2tl($miktar); return $this->tl2dolar($tl); } } |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<html> <head> <meta charset="UTF-8"> <title>adasds</title> </head> <body> <?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 20:11 */ $dizi=["sayfa1","sayfa2","sayfa3"]; foreach($dizi as $d) include $d.".php"; if(isset($_GET["sayfa"])) { if(in_array($_GET["sayfa"],$dizi)) { $degisken=$_GET["sayfa"]; // sayfa1 yaziyorsa $p = new $degisken(); // new sayfa1() $p->index(); exit; } } echo "Sayfa Bulunamadi!"; ?> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 20:12 */ class ortak { public $username; public function testEt() { if ($this->username == "caglar") return true; return false; } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 20:12 */ class sayfa1 { public function index() { ?> <h1> internet programlama dersi </h1> <?php } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 20:12 */ class sayfa2 { public function index() { ?> <input type="text"> <?php } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 20:28 */ class sayfa3 { public function index() { ?> <table border="1"> <tr> <td> Deneme </td> <td> Abc </td> </tr> </table> <?php } } |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 19:47 */ include "urun.php"; $u = new urun(); $u->calistir(); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 19:55 */ class ortak { public $ortak; public function calistir() { echo "calistir<br>"; } public function ortak() { echo "ortak yapilandirici1"; } public function __construct() { echo "ortak yapilandirici2"; } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
<?php /** * Created by PhpStorm. * User: caglar * Date: 30.11.2017 * Time: 19:45 */ include "ortak.php"; class urun extends ortak { public $adi,$fiyat,$stok; private $x; public function urun() { echo "urun yapilandirici1<br>"; } public function __construct() { echo "urun yapilandirici2<br>"; $this->x=10; } } |
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
<html> <head> <title>Anket Programı</title> <meta charset="UTF-8"> </head> <body> <?php if (count($_POST) > 0) { $dosyax= fopen("yaz.txt","a"); if($dosyax) { foreach ($_POST as $indis => $deger) { $yazilacak=$indis.";".$deger."\n"; fwrite($dosyax,$yazilacak); } fwrite($dosyax,"----\n"); fclose($dosyax); echo "Bilgileriniz Kaydedildi!<br>"; } else echo "Bilgiler Kaydedilemedi!"; } ?> <form method="post"> <table border="1" width="100%"> <?php $dosya = fopen("dosya.txt", "r"); if ($dosya) { $veriler = fread($dosya, filesize("dosya.txt")); $satirlar = explode("\n", $veriler); $sayac = 0; foreach ($satirlar as $satir) { $bilgiler = explode(";", $satir); if (count($bilgiler) > 1) { $soru = $bilgiler[0]; $sayac++; echo "<tr>"; echo "<td>Soru-" . $sayac . ") " . $soru . "</td>"; echo "</tr>"; echo "<tr><td>"; for ($i = 1; $i < count($bilgiler); $i++) { $cevap = $bilgiler[$i]; $yaz = ""; if ($i == 1) $yaz = "checked"; if (strlen($cevap) > 0) { ?> <input type="radio" name="soru-<?php echo $sayac; ?>" value="<?php echo $cevap; ?>" <?php echo $yaz; ?> > <?php echo $cevap; ?> <?php } } echo "</td></tr>"; } } fclose($dosya); } else{ echo "<tr><td style='color: red; text-align: center;'>"; echo "Dosya Okunamadı!"; echo "</td></tr>"; } ?> <tr> <td > <input type="checkbox" required> Gönderimi Kabul Ediyorum! </td> </tr> <tr> <td style="text-align: center;"> <input type="submit" value="Gönder"> </td> </tr> </table> </form> </body> </html> |
Soru Dosyası
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
<html> <head> <title>Sınav Oturma Planı</title> <meta charset="UTF-8"> </head> <body> <?php $sutunsay=3; $isimlistesi=[]; $dosya=fopen("isimler.txt","r"); if($dosya) { $veriler=fread($dosya,filesize("isimler.txt")); $isimlistesi=explode("\n",$veriler); /*$liste=explode("\n",$veriler); for($say=0;$say<count($liste);$say++) { if(strlen($liste[$say])>1) $isimlistesi[]=$liste[$say]; }*/ fclose($dosya); } $konum=[]; $satir=0; $sutun=0; while(true) { $say=count($isimlistesi); if($say==0) break; $rast=rand(0,$say-1); if(strlen($isimlistesi[$rast])>1){ $konum[$satir][$sutun]=$isimlistesi[$rast]; $sutun++; if($sutun%$sutunsay==0) { $satir++; $sutun=0; } } array_splice($isimlistesi,$rast,1); } /* $say=0; while($say<100) { $r1=rand(0,count($isimlistesi)-1); $r2=rand(0,count($isimlistesi)-1); $tmp=$isimlistesi[$r1]; $isimlistesi[$r1]=$isimlistesi[$r2]; $isimlistesi[$r2]=$tmp; $say++; } $satirsay=count($isimlistesi)/$sutunsay; $sayac=0; for($satir=0;$satir<$satirsay;$satir++) { for($sutun=0;$sutun<$sutunsay;$sutun++) { $konum[$satir][$sutun]=$isimlistesi[$sayac++]; } }*/ ?> <table border="1" width="100%"> <tr> <td>#</td> <?php for($i=0;$i<$sutunsay;$i++) echo "<td>".($i+1)."</td>"; ?> </tr> <?php for($satir=0;$satir<count($konum);$satir++) { echo "<tr>"; echo "<td>".($satir+1)."</td>"; for($sutun=0;$sutun<count($konum[$satir]);$sutun++) { echo "<td>".$konum[$satir][$sutun]."</td>"; } echo "</tr>"; } ?> </table> </body> </html> |
İsim Listesi
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Anasayfa</title> </head> <body> <table width="100%" border="1"> <tr> <td style="text-align:center"><a href="index.php">Anasayfa</a></td> <td style="text-align:center"><a href="index.php?page=hakkinda">Hakkında</a></td> <td style="text-align:center"><a href="index.php?page=iletisim">İletişim</a></td> </tr> <tr> <td colspan="3" style="text-align:center"> <?php if(isset($_GET["page"]) && $_GET["page"]=="iletisim"){ //iletisim include("page_iletisim_x.php"); } else if(isset($_GET["page"]) && $_GET["page"]=="hakkinda"){ //hakkinda include("page_hakkinda_x.php"); }else{ // anasayfa $caglar="deneme"; include("page_anasayfa_x.php"); } ?> </td> </tr> </table> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Anasayfa<br> Anasayfa<br> Anasayfa<br> Anasayfa<br> Anasayfa<br> Anasayfa<br> Anasayfa<br> Anasayfa<br> <?php echo "**asdasdasd**".$caglar; ?> |
1 2 3 4 5 6 7 8 |
hakkinda<br> hakkinda<br> hakkinda<br> hakkinda<br> hakkinda<br> hakkinda<br> hakkinda<br> hakkinda<br> |
1 2 3 4 5 6 7 8 |
iletisim<br> iletisim<br> iletisim<br> iletisim<br> iletisim<br> iletisim<br> iletisim<br> iletisim<br> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
<html> <head> <meta charset="UTF-8"> <title>Başvuru Formu</title> </head> <style> input, select{ width:200px; color:red; font-weight:bold; } .td1{ text-align:right; font-weight:bold; color:blue; } .td2{ width:200px; color:red; font-weight:bold; } .radio{ width:35px; } .baslik{ text-align:center; color:red; font-weight:bold; } </style> <body> <?php function getir($key,$varsayilan) { if(isset($_POST[$key])) return $_POST[$key]; return $varsayilan; } if(count($_POST)>0) { $adsoyad=getir("adsoyad","-"); $meslek=getir("meslek","-"); $cinsiyet=getir("cinsiyet","-"); $adres=getir("adres","-"); $telno=getir("telno","-"); $dogumtarihi=getir("dogumtarihi","-"); $egitim=getir("egitim","-"); $hobi=""; for($i=1;$i<5;$i++) { $veri=getir("ch".$i,"-"); if($veri!="-") { if(strlen($hobi)>0) $hobi.=","; $hobi.=$veri; } } ?> <table border="1" width="50%"> <tr> <td colspan="2" class="baslik">Başvuru Formu Çıktısı</td> </tr> <tr> <td class="td1">Ad Soyad:</td> <td class="td2"><?php echo $adsoyad; ?></td> </tr> <tr> <td class="td1">Meslek:</td> <td class="td2"><?php echo $meslek; ?></td> </tr> <tr> <td class="td1">Cinsiyet:</td> <td class="td2"><?php echo $cinsiyet; ?></td> </tr> </tr> <tr> <td class="td1">Doğum Tarihi:</td> <td class="td2"><?php echo $dogumtarihi; ?></td> </tr> <tr> <td class="td1">Adres:</td> <td class="td2"><?php echo $adres; ?></td> </tr> <tr> <td class="td1">Tel.No:</td> <td class="td2"><?php echo $telno; ?></td> </tr> <tr> <td class="td1">Eğitim Durumu:</td> <td class="td2"><?php echo $egitim; ?></td> </tr> <tr> <td class="td1">Hobiler:</td> <td class="td2"><?php echo $hobi; ?></td> </tr> <tr> <td class="baslik" colspan="2"><a href="index.php">Başvuru Formuna Dön</a></td> </tr> <tr> </table> <?php } else { ?> <form method="post"> <table border="1" width="50%"> <tr> <td colspan="2" class="baslik">Başvuru Formu</td> </tr> <tr> <td class="td1">Ad Soyad:</td> <td class="td2"><input type="text" name="adsoyad"></td> </tr> <tr> <td class="td1">Meslek:</td> <td class="td2"><input type="text" name="meslek"></td> </tr> <tr> <td class="td1">Cinsiyet:</td> <td class="td2"><input class="radio" type="radio" value="Bay" name="cinsiyet">Bay <input class="radio" type="radio" value="Bayan" name="cinsiyet">Bayan</td> </tr> <tr> <td class="td1">Doğum Tarihi:</td> <td class="td2"><input type="number" name="dogumtarihi"></td> </tr> <tr> <td class="td1">Adres:</td> <td class="td2"><input type="text" name="adres"></td> </tr> <tr> <td class="td1">Tel.No:</td> <td class="td2"><input type="text" name="telno"></td> </tr> <tr> <td class="td1">Eğitim Durumu:</td> <td class="td2"> <select name="egitim"> <option value="0">Seçiniz</option> <option value="Lisans">Lisans</option> <option value="YL">YL</option> <option value="DR">DR</option> </select> </td> </tr> <tr> <td class="td1">Hobiler:</td> <td class="td2"> <input type="checkbox" class="radio" name="ch1" value="Müzik">Müzik<br> <input type="checkbox" class="radio" name="ch2" value="Resim">Resim<br> <input type="checkbox" class="radio" name="ch3" value="Spor">Spor<br> <input type="checkbox" class="radio" name="ch4" value="Aşçılık">Aşçılık<br> </td> </tr> <tr> <td colspan="2" class="baslik"><input type="reset" value="Sıfırla"><input type="submit" value="Gönder"></td> </tr> </table> </form> <?php } ?> </body> </html> |
Okumaya devam et
Zpanelcp olarak başlamış fakat zpanel programcıları arasındaki anlaşmazlıklar sonucu yeni bir oluşum olan SENTORA projesi başlatılmıştır. Henüz yeni başlamış olan
Okumaya devam etSürekli aynı bilgisayarı kullanamıyor olabilirsiniz fakat taşınabilir bir veritabanı istiyorsanız SQLite tam size göre. Php ile SQLite erişimini test etmek
Okumaya devam et
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
<html> <head> <meta charset="UTF-8"> </head> <body> <?php function ortalamavesira($arr,$noo) { $sayac=0; $arr1=array(); $toplam=0; foreach ($arr as $key=>$value) { $val=$arr[$key]; if($value!="GR" && is_numeric($val)) { $arr1[]=$val; $toplam+=$val; $sayac++; } } $ort=round($toplam/$sayac,2); rsort($arr1); if(is_numeric($arr[$noo])) $key = array_search($arr[$noo], $arr1); else return " ----- Sinava girmediginiz icin istatistik veremiyoruz"; $durum="siralamaniz:".($key+1)."/".count($arr1); return " ----- sinif ort:".$ort." ----- ".$durum; } $sayac=0; if(isset($_POST["no"]) && is_numeric($_POST["no"])) { $no=$_POST["no"]; $sinavkatari=array(); $sinavkatari["asinavi"]=array("123321123"=>"60"); $sinavkatari["bsinavi"]=array("123456789"=>"80","123321123"=>"50","111111111"=>"20"); $sinavkatari["csinavi"]=array("123456780"=>"50","123321123"=>"40"); $sinavkatari["dsinavi"]=array("123456781"=>"75","123321123"=>"60"); //... istediginiz kadar sinav ekleyebilirsiniz. foreach ($sinavkatari as $ky=>$vls) { $arr=$sinavkatari[$ky]; if(isset($arr[$no])){ echo $ky." vize notunuz:".$arr[$no]." ".ortalamavesira($arr,$no)."<br/>"; $sayac++; } } if($sayac==0){ echo "seni okul no ile taniyamadik :) bir yanlislik oldugunu dusunuyorsan mail atmayi deneyebilir veya face den ulasabilirsin<br/><br/><br/>"; } echo "<br/><br/><br/>"; } ?> <form action="" method="POST"> OKUL NO:<input type="text" id="no" name="no"><br/> <input type="submit" value="Gonder" > </form> </body> </html> |
Kodun çalışır haline buradan ulaşabilirsiniz.
Okumaya devam et
Son Yorumlar