Re: [Linux-programlama] include ve exit

---------

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

From: bunyamin (blacknightro@gmail.com)
Date: Thu 14 Jul 2005 - 16:37:13 EEST


afedersin gozumden kacan bi yer olmus :)

oturum1.php
------------------------
<?php
$oturum="admin";
if(eregi("oturum1.php",$_SERVER["PHP_SELF"])){
  header("location: oturum2.php"); //yonlenme yapar
  exit();
}
?>

oturum2.php
--------------------------
<?php
include("oturum1.php");
echo $oturum;
exit(); //ki buraya bunu koymana gerek bile yok...
?>

On 7/14/05, Serbulent UNSAL <serbulentunsal@meds.ktu.edu.tr> wrote:
> Merhaba,
>
> Yanıtınız için teşekkürler. Oturum2.php yi açıyor ancak $oturum
> değişkenini ekrana yazmıyor ne yazı ki ?
>
>
> bunyamin wrote:
>
> >On 7/14/05, bunyamin <blacknightro@gmail.com> wrote:
> >
> >
> >>yapmak istedigin seyin matnigini anlayamadim
> >>
> >>kullanici girisi falanmi yapmak istiyorsun??
> >>
> >>ama sole bisi yapabilrsin..
> >>
> >>oturum1.php
> >>------------------------
> >><?php
> >>if(eregi("oturum1.php",$_SERVER["PHP_SELF"])){
> >> $oturum="admin";
> >> header("location: oturum2.php"); //yonlenme yapar
> >> exit();
> >>}
> >>?>
> >>
> >>
> >
> >ust tarafta sunu demek istedim eger sayfa oturum1.php de ise
> >$oturum degiskenine admin degerini atiyacak
> >
> >ve oturum2.php ye yonlenecek
> >
> >ve sonra php yi bitirecem
> >
> >
> >
> >
> >>oturum2.php
> >>--------------------------
> >><?php
> >>include("oturum1.php");
> >>echo $oturum;
> >>exit(); //ki buraya bunu koymana gerek bile yok...
> >>?>
> >>
> >>
> >
> >burada da oturum1.php yi acacak
> >
> >$oturum degiskenini yazacak
> >ve sonra php yi bitirecek
> >
> >
> >
> >
> >>On 7/14/05, Serbulent UNSAL <serbulentunsal@meds.ktu.edu.tr> wrote:
> >>
> >>
> >>>Merhaba,
> >>>
> >>>Aşağıdaki iki küçük dosya ile bir dosayada bir değişkene ata mayapı bunu
> >>>otomatik olarak diğer dosyada göstermek istiyorum. Ancak 2. dosya 1.
> >>>dosyadaki yönlendirme yüzünden soznsuz dönüye giriyor. exit()
> >>>fonksiyonunun bu sorunu çözmesini beklerdim ancak başarılı olamıyorum.
> >>>Sizce hata nerede ? Yanıtlar için şimdiden teşekkürler. İyi günler.
> >>>
> >>>oturum.php
> >>>
> >>><?php
> >>>$oturum="admin";
> >>>?>
> >>><meta http-equiv="refresh" content="1;url=/oturum2.php">
> >>><?php
> >>>exit();
> >>>?>
> >>>
> >>>oturum2.php
> >>>
> >>>
> >>><?php
> >>>include("./include/oturum.php");
> >>>echo $oturum;
> >>>exit();
> >>>?>
> >>>
> >>>
> >>>
> >>>_______________________________________________
> >>>Linux-programlama mailing list
> >>>Linux-programlama@liste.linux.org.tr
> >>>http://liste.linux.org.tr/mailman/listinfo/linux-programlama
> >>>
> >>>
> >>>
> >>>
> >>>
> >>------------------------------------------------------------------------
> >>
> >>_______________________________________________
> >>Linux-programlama mailing list
> >>Linux-programlama@liste.linux.org.tr
> >>http://liste.linux.org.tr/mailman/listinfo/linux-programlama
> >>
> >>
>
>
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
>

_______________________________________________
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.