Uses of fpassthru()
Posted: Thu May 23, 2002 11:15 pm
I am interested in hearing about the different ways which fpassthru() can be used, and some sample code bits from any of you who have used it in the past.
One question that I have is...
If I have a html page which has an image source tag in it set to be <? getimage.php?show=dog ?>
and then getimage.php had code in similar to this...
<?
if (show == $dog)
{
$dog = "./images/dog.jpg";
fopen $dog;
fpassthru($dog);
fclose $dog;
}
would that work?
One question that I have is...
If I have a html page which has an image source tag in it set to be <? getimage.php?show=dog ?>
and then getimage.php had code in similar to this...
<?
if (show == $dog)
{
$dog = "./images/dog.jpg";
fopen $dog;
fpassthru($dog);
fclose $dog;
}
would that work?