• 22-09-2007, 16:23:41
    #1
    Üyeliği durduruldu
    merhaba. elimde 1.php 2.php 3.php dosyaları var. bunu ana.php 'nin herhangi bir yerinde include "$rastgele.php" şeklinde çıkarıp bu sistemin randomize olmasını istiyorum. ne yapmalıyım.
  • 22-09-2007, 18:22:18
    #2
    a1.php a2.php ve a3.php olduğunu varsayarsak.kısa olarak mantık bu.
    Alıntı
    <?php

    $sayi=rand(1,3);
    include ("a" . $sayi . ".php");

    ?>
    kolay gelsin.
  • 22-09-2007, 18:52:29
    #3
    Kurumsal PLUS
    <?php
    $deger[] = "a.php";
    $deger[] = "b.php";
    $deger[] = "sdfsdf.php";
    $deger[] = "hedehude.php";
    $deger[] = "34534.php";
    
    $salla = rand(1,5);
    $includemiz = $deger[$salla];
    
    include $includemiz;
    ?>
    istediğin kadar uzatabilirsin
  • 23-09-2007, 15:17:07
    #4
    Üyeliği durduruldu
    Belki Faydası Olur

    RapidShare: 1-Click Webhosting