Re: [Linux-programlama] session_path

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: onuRRR (cversuscobol@gmail.com)
Date: Mon 12 Feb 2007 - 17:00:55 EET


hocam sen nesin ya, evet evet bunlar sevinç gözyasları, hocam cok tesekkür
ederim kac gecedir nette okumadığım yorum yapmadığım fantezi kalmadı
gercekten eyvallah..

2007/2/12, Agah ALICI <agah@sakarya.edu.tr>:
>
> O kısmı şöyle değiştirelim sorun çözülür. ;)
>
> Ama asıl çözüm bu değil.
> 39. satırda kullandığın header("") .... komutunun çalışabilmesi için
>
> <!DOCTYPE....
> ...
> <body>
>
> kısmının olmaması lazım.
> arada echo vs. var demiştim. sen yok demiştin.
> php tagları dığındaki herşey phpde echo yapılmış gibi düşünülebilir ;)
>
> <?php
> session_start();
> *ob_start();*
> ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
> ">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
>
> <title>giris</title>
> </head>
> <body>
> <?php
> $conn = mysql_connect("localhost", "root");
> if (!$conn){
> echo "veritabanina ulasilamadi,kullaniciadi,sifre yada localhost bilgisi
> yanlis olabilir: " . mysql_error();
> exit;
> }
> if (!mysql_select_db("onurdyhdb")){
> echo "Veritabani adi dogru degil, yada yok: " . mysql_error();
> exit;
> }
> .
> .
> .
> .
> *<?php*
> *//sayfanın sonu
> ob_flush();*
> *?>*
>
> ------------------------------
> *From:* linux-programlama-bounces@liste.linux.org.tr [mailto:
> linux-programlama-bounces@liste.linux.org.tr] *On Behalf Of *onuRRR
> *Sent:* Monday, February 12, 2007 3:25 PM
> *To:* linux-programlama@liste.linux.org.tr
> *Subject:* Re: [Linux-programlama] session_path
>
> hocam herhangi bir "echo" yok kodu olduu gibi gönderiyorum, belki baska
> bir hatadan kaynaklanıyordur..
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
> ">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
>
> <title>giris</title>
> </head>
> <body>
> <?php
> session_start();
> $conn = mysql_connect("localhost", "root");
> if (!$conn){
> echo "veritabanina ulasilamadi,kullaniciadi,sifre yada localhost bilgisi
> yanlis olabilir: " . mysql_error();
> exit;
> }
> if (!mysql_select_db("onurdyhdb")){
> echo "Veritabani adi dogru degil, yada yok: " . mysql_error();
> exit;
> }
>
> if($_POST['durum'] == 'giris'){
>
> $kullaniciadi=htmlentities(mysql_real_escape_string($_POST['kullaniciadi']));
>
> $sifre = mysql_real_escape_string(md5($_POST['sifre']));
> echo "$kullaniciadi";
> echo "$sifre";
> $kontrol=mysql_query("SELECT kullaniciadi,sifre,onay FROM uyeler WHERE
> kullaniciadi='".$kullaniciadi."' and sifre='".$sifre."'");
> if (mysql_num_rows($kontrol) < 1){
> header("Location: form.html");
> }else{
> $kontrolet=mysql_fetch_array($kontrol);
> if($kontrolet['onay'] == "0"){
> echo "Hesabinizi aktive etmek için Eposta adresinize gönderilen adresi
> tiklayarak giris yapmaniz gerekir";
> exit;
> }else{
> $_SESSION['kullaniciadi'] = $kontrolet['kullaniciadi'];
> $_SESSION['uye'] = 'uyemiz';
> header("Location: hesap.php");
> }
> }
>
>
> }else{
> header("Location: form.html");
> }
>
> mysql_close($conn);
> ?>
> </body>
> </html>
>
> >
> > -- Dyhonur
>
>
>
> ------------------------------------------------------------------------------------
> Bu E-Posta Sakarya Universitesi E-posta Sunucusu Araciligiyla Size
> Ulastirilmistir.
>
> SAU >> BIDB >> Ar-Ge S.M. >> Sistem Yonetimi Servisi
>
> BitDefender Antivirus Yazilimi Tarafindan Virus Taramasindan
> Gecirilmistir.
>
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>

-- 
Dyhonur

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.