i have spend hours and i gave up on this for now.heres the problem im trying to output a picture using the fopen then the fpassthru
<?php
if (!$file=fopen("coo.jpg", "rb")) {
echo("Could not open file"); // If fopen() returns 0, couldn't open file
} else {
fpassthru($file); // Display
}
?>
what this does is it outputs the graphic in binary and not as a image . how do i fix that..i have tried editing the php.ini file and running apache 1.3.x and mysql running them both on linux and windows (windows is my test machine ) and both do the same thing .
looks like chinese writting and i read i have to set the mime type but i have no clue how. thanks