PHP displaying images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 file.
I am using PHP 5.0.3 with GD 2.0.28. The report from phpinfo() indicates gd present and enabled. Other nongraphics content-types do not gererate errors.


Code used was "First Program" from tutorial at http://www.phpfreaks.com/tutorials/105/1.php. Similar code from php manual generates the same error.

I suspect the solution is simple but I'm just not seeing it!

Help

Ian Johnson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux