Hi
You have to make sure that the user that your web server is running as has
permission to write where you want to create the file.
Tom
At 12:56 PM 7/03/2002, Craig Westerman wrote:
>Hi Tom,
>
>At first it didn't work. I had to create a blank png image in Photoshop and
>uploaded it. I then c
An alternative is to put the code into makeImage.php and then call it
directly from your HTML page with your whenever
you want that image displayed.
Jim.
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
> use ImagePNG($im,"test.png")
>
> To
Hi Tom,
At first it didn't work. I had to create a blank png image in Photoshop and
uploaded it. I then changed file permissions and then the image creation
worked. Is there a way to write to test.png when it doesn't already exist
and file permissions are set?
Thanks for your help.
Craig ><>
[E
Hi
use ImagePNG($im,"test.png")
Tom
At 12:17 PM 7/03/2002, Craig Westerman wrote:
>The following creates a red rectangle png image
>
>Header("Content-Type: image/png");
>$im = ImageCreate(500, 75);
>$red = ImageColorAllocate($im, 255, 0, 0);
>ImageFill($im, 100, 100, $red);
>ImagePNG($im);
>?>
>
The following creates a red rectangle png image
This sends created image to browser
ImagePNG($im);
How would I save this image as test.png to file to be hard coded in static
web pages?
Thanks
Craig ><>
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
5 matches
Mail list logo