Php4 den gecis Php5 Session sorunu
40
●3.873
- 29-09-2008, 03:43:59Üyeliği durduruldu>Bide Bu dosyaya bakiziniz belki sorun burdadir. kodlarin icinde bunu gondermeyi unutmusum .
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="627" id="table1" height="39"> <form action="sirala.html?alfa=<?=$_GET[alfa]?>&s=<?=$_GET[s]?>&sid=<?=$PHPSESSID?>" method="GET" onSubmit="javascript:Listem();"> <tr> <td width="325" height="28"> <p align="left"> <? if (!is_int($kacsayfa)) { $kacsayfa++; } $toplamsayfa = (int)$kacsayfa; if ($_GET['s'] > 1) { $onceki = $s-1; echo "<a href='$PHP_SELF?alfa=$_GET[alfa]&s=$onceki&SID=$PHPSESSID'><img src='img/geri.gif' border='0'></a>"; } if ($_GET['s'] > 1 && $toplamsayfa > $_GET['s']) { echo "<img src='img/igara.gif' border='0'>"; } if ($toplamsayfa > $s) { $sonraki = $s+1; echo "<a href='$PHP_SELF?alfa=$_GET[alfa]&s=$sonraki&SID=$PHPSESSID'><img src='img/ileri.gif' border='0'></a>"; } ?> </td> <td width="302" height="28"> <input type="image" src="img/listeye_button.gif" align="right" name="I1"></td> </tr> </table> <table border="0" cellspacing="0" width="629" id="AutoNumber4" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="37"> <tr> <td width="629" bgcolor="#C4EC02" height="17" colspan="7"> <b> <font face="Verdana" size="1" color="#FFFFFF"> </font><font face="Verdana" size="1">[<?=$harf?>] Harfi Listeleniyor..</font></b></td> </tr> <tr><td width="13" bgcolor="#F4FAFF" height="1"></td></tr> <? while ($liste=@mysql_fetch_array($kayit)) { ?> <tr> <td width="13" bgcolor="#F4FAFF" height="20"> <p align="left"><input type="checkbox" name="id[]" value="<?=$liste[id]?>"></td> <td width="21" bgcolor="#F4FAFF" height="20"> <p align="left"><font face="verdana" color="#000000" size="1"><b> <img border="0" src="img/bullet2.gif"></b></font></td> <td width="276" bgcolor="#F4FAFF" height="20"> <font face="verdana" color="#000000" size="1"> <b><a href="mp3-dinle-<?=$liste[id]?>.html" style="text-decoration: none" </b><b><font color="#000000"><? echo substr("$liste[baslik]</b></a>", 0, 35);?></font></td> <td width="97" bgcolor="#F4FAFF" height="20"> <p align="center"><font face="verdana" size="1"><b><?=$liste[sayac]?></b> Dinleme</font></td> <td width="4" bgcolor="#F4FAFF" height="20"> </td> <td width="114" bgcolor="#F4FAFF" height="20"> <p align="center"><font face="Verdana" size="1"> <a href="javascript:Dinle(<?=$liste[id]?>)" style="text-decoration: none"><img border="0" src="img/dinle_ico.gif"></a> </font></td> <td width="90" bgcolor="#F4FAFF" height="20"> <font face="Verdana" style="font-size: 9pt"> </font> <font face="Verdana" size="1"> <a href="indir-dinle-<?=$liste[id]?>.html" style="text-decoration: none"><img border="0" src="img/indir.gif"></img></a></td> </tr> <? } ?> </table> - 29-09-2008, 03:48:08Kimlik doğrulama veya yönetimden onay bekliyor.biraz önce phpsessid çıkmıştı
- 29-09-2008, 03:48:44SinirsizMp3.NeT - Online Müzik Keyfi | Müzik Dinlemenin Keyfine Varın!
böyle bir sayfa gördüm bir 5 dakika önce... - 29-09-2008, 03:49:25Üyeliği durduruldunasil biraz once cikmisti index de cikiyor ama siralama yaparken cikmiyor daha yeni $PHPSESSID; kodunu <? print session_id();?> yaptim ama yine cikmadi.. bende.
- 29-09-2008, 03:51:58sayfanın header bölümünü içeren kodlarıda gösterir misiniz...
- 29-09-2008, 03:52:05Üyeliği durduruldubende bu kodu yazinca cikmiyor . $PHPSESSID; bos kaliyor .neden yapiyor anlamiyorum cikmiyor yine.
- 29-09-2008, 03:58:44Üyeliği durdurulduBurasi sirala.shtml
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="627" id="table1" height="39"> <form action="sirala.html?alfa=<?=$_GET[alfa]?>&s=<?=$_GET[s]?>&sid=<?=$PHPSESSID?>" method="GET" onSubmit="javascript:Listem();"> <tr> <td width="325" height="28"> <p align="left"> <? if (!is_int($kacsayfa)) { $kacsayfa++; } $toplamsayfa = (int)$kacsayfa; if ($_GET['s'] > 1) { $onceki = $s-1; echo "<a href='$PHP_SELF?alfa=$_GET[alfa]&s=$onceki&SID=$PHPSESSID'><img src='img/geri.gif' border='0'></a>"; } if ($_GET['s'] > 1 && $toplamsayfa > $_GET['s']) { echo "<img src='img/igara.gif' border='0'>"; } if ($toplamsayfa > $s) { $sonraki = $s+1; echo "<a href='$PHP_SELF?alfa=$_GET[alfa]&s=$sonraki&SID=$PHPSESSID'><img src='img/ileri.gif' border='0'></a>"; } ?> </td> <td width="302" height="28"> <input type="image" src="img/listeye_button.gif" align="right" name="I1"></td> </tr> </table> <table border="0" cellspacing="0" width="629" id="AutoNumber4" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="37"> <tr> <td width="629" bgcolor="#C4EC02" height="17" colspan="7"> <b> <font face="Verdana" size="1" color="#FFFFFF"> </font><font face="Verdana" size="1">[<?=$harf?>] Harfi Listeleniyor..</font></b></td> </tr> <tr><td width="13" bgcolor="#F4FAFF" height="1"></td></tr> <? while ($liste=@mysql_fetch_array($kayit)) { ?> <tr> <td width="13" bgcolor="#F4FAFF" height="20"> <p align="left"><input type="checkbox" name="id[]" value="<?=$liste[id]?>"></td> <td width="21" bgcolor="#F4FAFF" height="20"> <p align="left"><font face="verdana" color="#000000" size="1"><b> <img border="0" src="img/bullet2.gif"></b></font></td> <td width="276" bgcolor="#F4FAFF" height="20"> <font face="verdana" color="#000000" size="1"> <b><a href="mp3-dinle-<?=$liste[id]?>.html" style="text-decoration: none" </b><b><font color="#000000"><? echo substr("$liste[baslik]</b></a>", 0, 35);?></font></td> <td width="97" bgcolor="#F4FAFF" height="20"> <p align="center"><font face="verdana" size="1"><b><?=$liste[sayac]?></b> Dinleme</font></td> <td width="4" bgcolor="#F4FAFF" height="20"> </td> <td width="114" bgcolor="#F4FAFF" height="20"> <p align="center"><font face="Verdana" size="1"> <a href="javascript:Dinle(<?=$liste[id]?>)" style="text-decoration: none"><img border="0" src="img/dinle_ico.gif"></a> </font></td> <td width="90" bgcolor="#F4FAFF" height="20"> <font face="Verdana" style="font-size: 9pt"> </font> <font face="Verdana" size="1"> <a href="indir-dinle-<?=$liste[id]?>.html" style="text-decoration: none"><img border="0" src="img/indir.gif"></img></a></td> </tr> <? } ?> </table>Burasida sirala.php
<? ob_start(); session_start(); include "data.php"; if ($_POST["id"]) { $sepet =& $_SESSION["sepet"]; $sepet[] = $_POST["id"]; ?> <script language='javascript'> function Listem() { self.name = 'listem'; var liste = 'width=300,height=400,left=20,top=150,scrollbars=yes'; OpenWindow = window.open('listem.php', 'remote', liste); OpenWindow.focus(); } Listem(); </script> <? } $harf = $_GET["alfa"]; $harf = $harf{0}; if ($harf == "") { header("location: index.html?sid=$PHPSESSID"); } if (is_numeric($harf)) { header("location: index.html?sid=$PHPSESSID"); } //***************** $limit = "40"; if ($_GET['s'] == "") { $s = "1"; } $veri = @mysql_query("SELECT * FROM mp3 WHERE `baslik` LIKE '$harf%'"); $toplamveri = @mysql_num_rows($veri); $kacsayfa = $toplamveri/$limit; $son = ($s-1)*$limit; $kayit = @mysql_query("SELECT * FROM mp3 WHERE `baslik` LIKE '$harf%' ORDER BY baslik ASC LIMIT $son,$limit"); include "inc/main.shtml"; ?>Hersey Bu ikisi Tarafindan oluyor . bide index.php var oda hepsi index.php icinde cagirildigi icin include oldugu icin burasida index.php
<? ob_start(); session_start(); $dinle = "tamamdir"; $_session["dinle"]; include "data.php"; if (empty($i)) { $sonlist = @mysql_query("SELECT * FROM mp3 ORDER BY ID DESC LIMIT 0,15"); $sorgu = @mysql_query("SELECT * FROM mp3 order by sayac DESC LIMIT 15"); include "inc/main.shtml"; if ($_POST["id"]) { $sepet =& $_SESSION["sepet"]; $sepet[] = $_GET["id"]; ?> <script language='javascript'> function Listem() { self.name = 'listem'; var liste = 'width=300,height=400,left=20,top=150,scrollbars=yes'; OpenWindow = window.open('listem.php', 'remote', liste); OpenWindow.focus(); } Listem(); </script> <? } exit; } ?> - 29-09-2008, 04:00:31Üyeliği durdurulduheader bolumu sirala.shtml islemi yapan sirala.php