ok, tried it, and the log now reads:

[03-Jan-2003 18:26:39] PHP Fatal error:  Call to undefined function:
imagecreate() in C:\shares\sites\dvd\php\rating.php on line 7

and that file looks like this:

<?php
header("Content-type: image/png");

$width = 60;
$height = 12;

$image = imagecreate($width, $height);

$red = imagecolorallocate($image, 255, 0, 0);

$im = imagecreatefrompng  ("../images/ratingBackground2.png");
$im2 = imagecreatefrompng  ("../images/ratingBackgroundBlank2.png");
$i = imagecopyresized($image, $im2, 0, 0, 0, 0, $width, $height, $width,
$height);

$newWidth = $width * ($rating / 5);
$i = imagecopyresized($image, $im, 0, 0, 0, 0, $newWidth, $height,
$newWidth, $height);

imagecolortransparent($image, $red);

imagepng($image);

imagedestroy($image);

?>

is this making any sense at all?

.kim
----- Original Message -----
From: "Stephen Edmonds" <[EMAIL PROTECTED]>
To: "kimBlim" <[EMAIL PROTECTED]>
Cc: "PHP Installation Helplist" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 4:07 PM
Subject: Re: [PHP-INST] first post, be gentle


> Try the following:
>
> Go into PHP ini and make the following changes:
> log_errors = On
> error_log = C:\PHP\errorlog.txt
>
> Then, go into C:\PHP, and create a file called errorlog.txt. Then, try to
> start your webserver up and access the php page. Hopefully, the file will
> then be filled with the error messages. It may help us to track down the
> problem... hopefully anyway!
>
> ----- Original Message -----
> From: "kimBlim" <[EMAIL PROTECTED]>
> To: "toby -" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 03, 2003 2:13 PM
> Subject: Re: [PHP-INST] first post, be gentle
>
>
> thanx for the tip, but im using IIS :(
>
> kimblim | www.kimblim.dk
>
> ----- Original Message -----
> From: "toby -" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 03, 2003 3:10 PM
> Subject: Re: [PHP-INST] first post, be gentle
>
>
> >
> > kim
> >
> > if ur using apache try copying ur extensions folder to
> > \Program Files\Apache Group\Apache\
> >
> > its rathr silly but thats how i got it workin fo me
> >
> > hope dis helps ....
> >
> > good luck ....
> >
> > toby .....
> >
> >
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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

Reply via email to