Jump to content

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...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.