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 - 13:32:02 EEST


yapmak istedigin seyin matnigini anlayamadim

kullanici girisi falanmi yapmak istiyorsun??

ama sole bisi yapabilrsin..

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

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

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


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

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.