Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] PHP Image Creation problems & MacOSX



At 5:59 PM -0400 10/19/03, Walter Lee Davis wrote:
You can create a JPEG or a PNG, but not a GIF.

Well, when I try this:


<?php header ("Content-type: image/jpeg"); $im = imagecreate (50, 100); $background_color = imagecolorallocate ($im, 255, 255, 255); $text_color = imagecolorallocate ($im, 233, 14, 91); imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color); imagejpeg ($im ); imagedestroy ($im); ?>

I get the error:

The image "imagetest.php" cannot be displayed, because it contains errors.

Any ideas?


Again, doing the same thing with my primary web host works. _______________________________________________ web-development mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development Do not post admin requests to the list. They will be ignored.

References: 
 >[Q] PHP Image Creation problems & MacOSX (From: Eric Gorr <email@hidden>)
 >Re: [Q] PHP Image Creation problems & MacOSX (From: Walter Lee Davis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.