This is how I put a jpg into a string.
---------------------------------
$File1 = "pic1.jpg";
// open for read/binary-safe
$objFH = fopen( $File1, "rb" );
$strBuffer1 = fread( $objFH, filesize( $File1 ) );
fclose( $objFH );
----------------------------------
Which is fine when pic1.jpg exists, but pic1.jpg is created live by
calling pic1.php which outputs a jpg, pic1.jpg.
If I try fopen( "pic1.php", "rb" ) it will give me the php file, I want
it to open the image file, preferably without writing it to disk.
Herc
---------------------------------
$File1 = "pic1.jpg";
// open for read/binary-safe
$objFH = fopen( $File1, "rb" );
$strBuffer1 = fread( $objFH, filesize( $File1 ) );
fclose( $objFH );
----------------------------------
Which is fine when pic1.jpg exists, but pic1.jpg is created live by
calling pic1.php which outputs a jpg, pic1.jpg.
If I try fopen( "pic1.php", "rb" ) it will give me the php file, I want
it to open the image file, preferably without writing it to disk.
Herc
Comment