Search Script for Wapbuddy like scripts?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Search Script for Wapbuddy like scripts?

    is there any search script for wapbuddy like scripts? coz spider's Wappbuddy edit with a search script doesnt work.

    #2
    $wtlf is needed to put in a html form send the value using $_REQUEST.
    Code:
    <?php
    //==========
    // Configuration
    //==========
    $directory = '/var/www/'; //trailing slash
    $wtlf = 'signature'; //what to look for
     
    //======
    // Snippet
    //======
    $flag = false;
    $ext = array( '.jpg' , '.gif' , '.png' );
    for( $i = 0; count( $ext ) > $i; $i++ )
    {
         if( file_exists( $directory . $wtlf . $ext[$i] ) )
         {
              $flag = true;
              $name = $wtlf . $ext[$i];
         }
    }
     
    if( $flag == true )
    {
         echo 'found file!';
         //echo $name;
    }
    ?>

    Comment


      #3
      thanks!gonna try that.

      Comment


        #4
        im a little lost.

        Code:
        <html>
        <body>
        <?php
        //==========
        // Configuration
        //==========
        $directory = '/localhost/wapsite/games/nokia_s60/folder-a/'; //trailing slash
        $wtlf = 'i'; //what to look for
         
        //======
        // Snippet
        //======
        $flag = false;
        $ext = array( '.jpg' , '.gif' , '.png' );
        for( $i = 0; count( $ext ) > $i; $i++ )
        {
             if( file_exists( $directory . $wtlf . $ext[$i] ) )
             {
                  $flag = true;
                  $name = $wtlf . $ext[$i];
             }
        }
         
        if( $flag == true )
        {
             echo 'found file!';
             echo $name;
        }
        ?>
        
        </body>
        </html>

        Comment


          #5
          Its working.
          Code:
          <?php
          $directory = '/home/wapfuns/public_html/';
          $wtlf = 'index'; //what to look for
          
          $flag = false;
          $ext = array( '.jpg' , '.gif' , '.png', '.php', '.html' );
          for( $i = 0; count( $ext ) > $i; $i++ )
          {
               if( file_exists( $directory . $wtlf . $ext[$i] ) )
               {
                    $flag = true;
                    $name .= $wtlf . $ext[$i];
               }
          }
           
          if($flag == true)
          {
               echo 'found file!<br/>';
               echo $name;
          }
          else 
          {
              echo "file not found.";
          
          }
          ?>
          result is

          found file!
          index.phpindex.html
          Use
          Code:
          <? 
          echo __FILE__; 
          ?>
          to get file's path.

          Comment


            #6
            i still have to try that. thankz a lot!ΓΌ

            Comment


              #7
              How to use this script?
              LESS TALK. LESS MISTAKE.

              HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

              Comment


                #8
                ok its working. bot how can I add a function to fetch the link of the searched file?

                Comment


                  #9
                  Originally posted by koizumi View Post
                  ok its working. bot how can I add a function to fetch the link of the searched file?
                  I have already told to fetch link, now what remains is to add again a copy and paste code for you.

                  Comment


                    #10
                    hmmm i dont know if how to use this script... hehehehe..
                    lol..
                    LESS TALK. LESS MISTAKE.

                    HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

                    Comment

                    Working...
                    X