ID: 20400 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: *Graphics related Operating System: win32 PHP Version: 4.2.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-11-12 14:25:34] [EMAIL PROTECTED] The following PHP script is stable on *NIX platforms but unstable on Win32 platorms. <?php $LineLength = 50; $uploadfile = 'PATH TO IMAGE'; $uploadfile_name = 'PATH TO IMAGE'; $fd = fopen ($uploadfile, "r"); $size = filesize ($uploadfile); $c = substr ("$uploadfile_name", strrpos ($uploadfile_name, ".") + 1 ); $cont = fread ($fd, $size); fclose ($fd); $encimg = base64_encode ($cont); $imgcode = chunk_split ("$encimg", $LineLength, "'.'"); print $imgcode; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20400&edit=1
