Please read http://us.php.net/manual/en/language.variables.scope.php
On Mon, 29 Oct 2001, Richard Marks wrote: > what in the world is wrong here? > > -------------------------------------------------------------------------------- > > <? > Header ("Content-type: image/png"); > $img = imagecreate ($width,$height); > $color = imagecolorallocate ($img,$tx_r,$tx_g,$tx_b); > $pixel_color = imagecolorallocate ($img,$px_r,$px_g,$px_b); > function box( $img, $x, $y, $x2, $y2, $color ) > { > imageline( $img,$x,$y,$x2,$y,$color ); > imageline( $img,$x,$y2,$x2,$y2,$color ); > imageline( $img,$x,$y,$x,$y2,$color ); > imageline( $img,$x2,$y,$x2,$y2,$color ); > } > function Square( $x, $y, $size, $pcolor ) > { > if ($size < 50) > break; > box($img,$x,$y,$x+$size,$y-$size,$pcolor ); > Square($img,$x-$size/4,$y+$size/4,$size/2,$pcolor ); > Square($img,$x+$size-$size/4,$y+$size/4,$size/2,$pcolor ); > Square($img,$x-$size/4,$y-$size+$size/4,$size/2,$pcolor ); > Square($img,$x+$size-$size/4,$y-$size+$size/4,$size/2,$pcolor ); > } > imagerectangle($img,0,0,$width,$height,$color); > Square ($img, -1000,1000,2000,$pixel_color ); > imagepng($img); > ?> > > -------------------------------------------------------------------------------- > > thanks, > Sincerely, > GZM SoftwareŽ WebMaster > [EMAIL PROTECTED] > http://www.gzmsoftware.f2s.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]