Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
should be true. (I saw it in this forum) But I couldn't make it work. I tried exec and system commands as well but nothing changed.
I'm tryng to create a transparent backgrounded png file on fly with auto height and width base on text size. And echo this directly as page response.
Not sure why it will not work but this should work:
Save your code on a page on its own called something like deny.php ( change passthrough to system ) then call from another page with <img src="deny.php"> You will probably have to remove the header line.
No the header line will still be needed as the <IMG SRC=...> tag calls the web server to get the image.
You should be able to call it direct too via the URL to the PHP PHP script.
The suffix should not matter for browsers, though when a user try to save the URL contents the correct suffix is a good thing. The problem then, is making sure the web server understands that it is a PHP script (to be parsed on the sever) and not really a PHP script. I had to do something similar recently, and a local ".htaccess" on my Apache web server fixed that problem.
Have you had a look in the error log "/var/log/httpd/error_log"
If you do not have access then you should (and you should do this any way), redirect your PHP errors to your own log (when debugging). See my PHP notes http://www.ict.griffith.edu.au/anthony/ ... /php.hints