Problems with STRSTR function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris

    Problems with STRSTR function

    I'm having a problem with the strstr function that is driving me up
    the ?!**!?! wall!

    OK, I hope the following sample code will illustrate the problem.

    <?

    $exif = read_exif_data_ raw($HTTP_POST_ FILES['image']['tmp_name'],0);

    echo '<hr><b>Exampl e 1</b><br>This is the test using fields from the
    exif data<hr>';

    $make=$exif['IFD0']['Make'];
    $model=$exif['IFD0']['Model'];

    echo "$make<br>" ;
    echo "$model<br><br> ";

    if(stristr($mod el,$make))
    {
    echo "true<br><b r>";
    }
    else
    {
    echo "false<br><br>" ;
    }

    echo '<hr><b>Exampl e 2</b><br>This is the test using manual data<hr>';

    $make="Canon";
    $model="Canon EOS300D DIGITAL";

    echo "$make<br>" ;
    echo "$model<br><br> ";

    if(stristr($mod el,$make))
    {
    echo "true<br><b r>";
    }
    else
    {
    echo "false<br><br>" ;
    }

    ?>

    And here is the out put:

    Example 1
    This is the test using fields from the exif data
    Canon
    Canon EOS 300D DIGITAL
Working...