Re: PHP displaying images

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

 



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 means "It's not a valid JPEG"

So comment out the header() and see if you see any error messages then.

After it looks like it's a JPEG (starts with yoya) put the header() line
back in.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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