note 113515 added to function.imagepng
| From: | php dot net at phor dot net | Date: | Wed, 23 Oct 2013 13:46:33 +0000 |
| Subject: | note 113515 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197305@lists.php.net to get a copy of this message | ||
If you are outputting a PNG directly in response to a client request it is important to check your
web server configuration.
Some clients may request your images with a <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">accept
header</a> of image/*. Default configurations of Apache and possibly other servers will by
default NOT allow your script to run in response to this request.
Apache is specifically discussed at http://stackoverflow.com/q/19169337 but other server
have been documented to have issue too.
In other words, when testing your application don't just use the web browser, consider a
phone's browser and networking libraries which could send different headers.
----
Server IP: 69.147.83.199
Probable Submitter: 173.12.28.129
----
Manual Page -- http://php.net/manual/en/function.imagepng.php
Edit -- https://master.php.net/note/edit/113515
Del: integrated -- https://master.php.net/note/delete/113515/integrated
Del: useless -- https://master.php.net/note/delete/113515/useless
Del: bad code -- https://master.php.net/note/delete/113515/bad+code
Del: spam -- https://master.php.net/note/delete/113515/spam
Del: non-english -- https://master.php.net/note/delete/113515/non-english
Del: in docs -- https://master.php.net/note/delete/113515/in+docs
Del: other reasons-- https://master.php.net/note/delete/113515
Reject -- https://master.php.net/note/reject/113515
Search -- https://master.php.net/manage/user-notes.php