Re: first post, be gentle
| From: | kim johannesen | Date: | Fri, 03 Jan 2003 17:35:58 +0000 |
| Subject: | Re: first post, be gentle | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-9527@lists.php.net to get a copy of this message | ||
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" <stephen.edmonds5@btinternet.com>
To: "kimBlim" <kimblim@hotmail.com>
Cc: "PHP Installation Helplist" <php-install@lists.php.net>
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" <kimblim@hotmail.com>
> To: "toby -" <figaromagnifico@hotmail.com>
> Cc: <php-install@lists.php.net>
> 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 -" <figaromagnifico@hotmail.com>
> To: <kimblim@hotmail.com>
> Cc: <php-install@lists.php.net>
> 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
>