kocak37 Posted July 10, 2012 Share Posted July 10, 2012 kot aşağıdaki gibi ($git=$_GET["git"] burada hata veriyor hhata şu şekilde ( Notice: Undefined index: git in C:\wamp\www\site\case.php on line 3) çözemedim <?php $git=$_GET["git"]; switch($git){ default: include("sayfalar/anasayfa/index.php"); break; case"uyehesabi": include("sayfalar/anasayfa/index.php"); break; } ?> Quote Link to comment Share on other sites More sharing options...
Bitmap Posted July 10, 2012 Share Posted July 10, 2012 case.php yee direkt getsiz girdiğin içindir... case.php?git=uyehesabi gibi girmen lazım.. hatayı engellemek için sayfanın başına error_reporting(0) ekle Quote Link to comment Share on other sites More sharing options...
blackman12 Posted July 10, 2012 Share Posted July 10, 2012 Kazım ya default değerse? $git=$_GET["git"]; satırını $git=@$_GET["git"]; ile değiştir. Quote Link to comment Share on other sites More sharing options...
kocak37 Posted July 10, 2012 Author Share Posted July 10, 2012 çok tşk ederim arkadaşlar olay düzeldi dediğiniz gibi yaptım ama anlamadığım bir şey var dinlediğim sette hata almıyor vebimkinde neden hata alıyorum localhostla ilgilimi? Quote Link to comment Share on other sites More sharing options...
Bitmap Posted July 10, 2012 Share Posted July 10, 2012 [quote name='blackman12' date='10 July 2012 - 23:03 ' timestamp='1341950602' post='1220363'] Kazım ya default değerse? $git=$_GET["git"]; satırını $git=@$_GET["git"]; ile değiştir. [/quote] defaultu düşünmedim ama doğrusu verdiğin gibi abi.... bir projede sadece bu hatanın olacağını sanmıyorum.. o nedenle error_reporting ile sorunu baştan çözmek daha mantıklı.. E_ALL dan E_NOTICE parametresini çıkartarak sadece kiritk hatalrı göstermesi daha mantıklı oalcaktır Quote Link to comment Share on other sites More sharing options...
kocak37 Posted July 10, 2012 Author Share Posted July 10, 2012 kardeşim benim anlayacağım dilden anlatırmısın ayarlarımı değiştireyim Quote Link to comment Share on other sites More sharing options...
blackman12 Posted July 10, 2012 Share Posted July 10, 2012 kısacası kodlarının başına error_reporting(E_ALL ^ E_NOTICE); koy diyor. bende error_reporting(0); kullanıyorum localdeyken. Quote Link to comment Share on other sites More sharing options...
carysma1 Posted July 10, 2012 Share Posted July 10, 2012 (edited) localhostta çalışıyorsan bu hatayı vermesi normal arkadaşlar çözümü yazmış. Edited July 10, 2012 by carysma1 Quote Link to comment Share on other sites More sharing options...
denizcafem Posted July 10, 2012 Share Posted July 10, 2012 Olan başına @ eklemekle çözülmez. Sadece @ işareti hatayı ekrana yazmaz o kadar. ama o hata loha hep işler yani sorun hala devam ediyor. git komutundan sonra gidilecek sayfayi sayfa.php şeklinde girmiş olsan veya localition olarak girmiş olsan hatasız geçiş sağlarsın Quote Link to comment Share on other sites More sharing options...
blackman12 Posted July 11, 2012 Share Posted July 11, 2012 denizcafem arkadaşım, bu bir sorun değildir sadece get e değer atanmadığı için $get değişkeni oluşturulmaz. $get değişkeni de caselerdeki hiç bir duruma uymadığından default değer çalışacaktır ve sayfa düzgün görüntülenecektir. Quote Link to comment Share on other sites More sharing options...
kocak37 Posted July 13, 2012 Author Share Posted July 13, 2012 arkadaşlar sağ olun olay dediğiniz gibi yapınca çözüldü Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.