Results 1 to 10 of 10

Thread: Search Script for Wapbuddy like scripts?

  1. #1
    Member
    Join Date
    Jul 2009
    Posts
    81
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    4

    Default 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. #2
    Senior Member rukiya's Avatar
    Join Date
    Apr 2007
    Location
    Bangladesh
    Posts
    572
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Rep Power
    0

    Default

    $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;
    }
    ?>
    [Only registered and activated users can see links. Click Here To Register...]




  3. #3
    Member
    Join Date
    Jul 2009
    Posts
    81
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    4

    Default

    thanks!gonna try that.

  4. #4
    Member
    Join Date
    Jul 2009
    Posts
    81
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    4

    Default

    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>

  5. #5
    Senior Member rukiya's Avatar
    Join Date
    Apr 2007
    Location
    Bangladesh
    Posts
    572
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Rep Power
    0

    Default

    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.
    [Only registered and activated users can see links. Click Here To Register...]




  6. #6
    Member
    Join Date
    Jul 2009
    Posts
    81
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    4

    Default

    i still have to try that. thankz a lot!ü

  7. #7
    Senior Member robzky's Avatar
    Join Date
    May 2009
    Posts
    210
    Thanks
    15
    Thanked 7 Times in 4 Posts
    Rep Power
    5

    Default

    How to use this script?

  8. #8
    Member
    Join Date
    Jul 2009
    Posts
    81
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    4

    Default

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

  9. #9
    Senior Member rukiya's Avatar
    Join Date
    Apr 2007
    Location
    Bangladesh
    Posts
    572
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by koizumi [Only registered and activated users can see links. Click Here To Register...]
    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.
    [Only registered and activated users can see links. Click Here To Register...]




  10. #10
    Senior Member robzky's Avatar
    Join Date
    May 2009
    Posts
    210
    Thanks
    15
    Thanked 7 Times in 4 Posts
    Rep Power
    5

    Default

    hmmm i dont know if how to use this script... hehehehe..
    lol..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Scripts Index
    By GumSlone in forum Scripts Forum
    Replies: 33
    Last Post: 26-12-11, 14:45
  2. [web] 65 Most Needed Php Scripts
    By jayasanka in forum Scripts Forum
    Replies: 19
    Last Post: 09-11-10, 15:30
  3. Mp3 Search Script
    By softhut in forum REQUEST FORUM
    Replies: 20
    Last Post: 28-11-09, 23:09
  4. File Search In Wap Buddy Script...
    By LankaZone in forum Scripts Forum
    Replies: 19
    Last Post: 25-01-08, 20:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19