0 Replies Latest reply on Nov 15, 2009 9:51 AM by vinod.adobe.com

    Flex hit counter

    vinod.adobe.com

      how to add simple hit conter in flex???

       

      In php succesflly loadded the hit conter its working but i want to know how to add external variables in-to flex?....

       

      <?php
          //Opening file to get counter value
          $fp = fopen ("counter.txt", "r");
          $count_number = fread ($fp, filesize ("counter.txt"));
          fclose($fp);
      ?>
      <html>
              <head>
                  <title>Counter number</title>
              </head>
              <body>
              <center>
              <?php
                  $i="";
                  $ImgPath="imgs/";    //Path of image folder
                  $counter = (int)($count_number) + 1;
                  $count_number = (string)($counter);
                  $len = strlen($count_number);
                  while($len!=$i && $len!=0)
                  {
                      echo "<img src=".$ImgPath.$count_number[$i].".jpg alt=\"You are visitor number $count_number\" width=20 Height=22>";
                      $i++;
                  }
                  $fp = fopen ("counter.txt", "w");
                  fwrite ($fp, $count_number);
                  fclose($fp);
              ?>
              </center>
              </body>
      </html>

       

       

       

      if yo konw please answer me its very urgent....

       

       

       

      www.vinoddanims.wordpress.com