Jump to content

reading match word on other site problem, help


djdeeno

Recommended Posts

Hi

I have script made that reading , in this example, if the word TRUE is on a other site. Wel this works fine, if its match he wil display it on the page, if not, he gives a message that the word not on that site, so far so good.

But if i get the word TRUE from a database or type TRUE and a other word BLAH on the answer.php page, he says that the word TRUE is not there. So how can i make it so that, it doesn't matter what others words there be also or if i get the word TRUE from a database that he said the word TRUE is find on that page?

 

Thanks allot, hope people understand me.

 

<?php

    if( ini_get( 'allow_url_fopen' ) == '1' )
    {
        $response = file_get_contents( 'http://www.domain.nl/answer.php' );
        
           if( $response !='TRUE' )


        {
                echo "Oke true is not there";  


        }
    else
    {    
                echo "Oke True is there";  

        }
    }

?>

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.