is there any search script for wapbuddy like scripts? coz spider's Wappbuddy edit with a search script doesnt work.
Search Script for Wapbuddy like scripts?
Collapse
X
-
$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; } ?>
-
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
-
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."; } ?>
found file!
index.phpindex.html
Code:<? echo __FILE__; ?>
Comment
-
Originally posted by koizumi View Postok its working. bot how can I add a function to fetch the link of the searched file?
Comment
Comment