[PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
Hello I am trying to use GD to create and manipulate images but the statement: header (Content-type: image/jpg); generates the error message: The image http://localhost/gdtst2.php; cannot be displayed, because it contains errors. There is no error message in the ../httpd/error_log

Re: [PHP] PHP displaying images

2005-01-28 Thread Richard Lynch
Ian Johnson wrote: I am trying to use GD to create and manipulate images but the statement: header (Content-type: image/jpg); generates the error message: The image http://localhost/gdtst2.php; cannot be displayed, because it contains errors. contains errors here

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
On Saturday 29 January 2005 10:13, Ian Johnson wrote: There is no error message in the ../httpd/error_log file. That looks like the Apache error log file, which is most likely not what you want to be looking at. You want the PHP error log, see settings in php.ini, and check phpinfo(). --

Re: [PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
This does the same for png as well. No errors are generated when header () is commented out or other content-types are specified Ian Johnson On Fri, 2005-01-28 at 20:45 -0800, Richard Lynch wrote: Ian Johnson wrote: I am trying to use GD to create and manipulate images but the statement:

Re: [PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
Jason Wong wrote: On Saturday 29 January 2005 10:13, Ian Johnson wrote: There is no error message in the ../httpd/error_log file. That looks like the Apache error log file, which is most likely not what you want to be looking at. You want the PHP error log, see settings in php.ini, and check

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
On Saturday 29 January 2005 13:42, Ian Johnson wrote: My php is configured to write error messages to the http error_log and not to display errors. OK. In this case the error is displayed and not logged. If you're referring to this ... The image http://localhost/gdtst2.php; cannot be