note 68999 added to ref.image

From: Date: Fri, 18 Aug 2006 23:43:32 +0000
Subject: note 68999 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-116072@lists.php.net to get a copy of this message
If you want to make an image through GET with text in several lines, use %0A for line separating, for example: /image.php?text=Text%20string%0Ain%20several%0Alines. As also you can make php generated images without other knowing that they are php-made. Simply add the image extension in Apache httpd.conf file: AddType application/x-httpd-php .php .png And call image as normal png image: /somephpautogeneratedimage.png Of course real .png files will be now treated as php, but if you dont have png files on your webserver, this wont be a problem. Or you can use this code for displaying real png images through php code: <?php $filename = 'realpngfile.png'; header('Content-type: image/png'); header('Content-length: '.filesize($filename)); readfile($filename); ?> ---- Server IP: 81.198.190.2 Probable Submitter: 87.110.92.210 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.image.php Edit -- https://master.php.net/note/edit/68999 Del: integrated -- https://master.php.net/note/delete/68999/integrated Del: useless -- https://master.php.net/note/delete/68999/useless Del: bad code -- https://master.php.net/note/delete/68999/bad+code Del: spam -- https://master.php.net/note/delete/68999/spam Del: non-english -- https://master.php.net/note/delete/68999/non-english Del: in docs -- https://master.php.net/note/delete/68999/in+docs Del: other reasons-- https://master.php.net/note/delete/68999 Reject -- https://master.php.net/note/reject/68999 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116072) next »