Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = 'http://my.url.com/';
- $data = file_get_contents( $url );
- if ( strpos( 'maybe baby love you', $data ) === false )
- {
- // do something
- }
- //The Answer No 3 Is good But a small Mistake in the function strpos() I have correction the code bellow.
- $url = 'http://my.url.com/';
- $data = file_get_contents( $url );
- if ( strpos($data,'maybe baby love you' ) === false )
- {
- // do something
- }
- $string = file_get_contents('http://example.com/file.html');
- if(strpos ('maybe baby love you', $string) === false){
- //do X
- }
Add Comment
Please, Sign In to add comment