Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( ! mysql_connect() ) return false;
- $result = mysql_query($query)
- if( ! $result ) return false;
- while( $data = mysql_fetch_row($result) )
- {
- if( ! is_readable($data['file'] ) ) return false;
- $fileContent = file_get_contents( $data['file'] );
- if( 0 !== strpos($fileContent,'asdfg') ) return false;
- //...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement