Please, if know write how drawing the diagram?
How drawing using PHP?
Moderator: General Moderators
How drawing using PHP?
Help!
Please, if know write how drawing the diagram?

Please, if know write how drawing the diagram?
what diagram?
here's a small example (of something
)have a look at http://www.php.net/manual/en/ref.image.php
here's a small example (of something
Code: Select all
<?php
$y1 = (isset($_GETї'startY']))?$_GETї'startY'] : 50;
$y2 = (isset($_GETї'endY']))?$_GETї'endY'] : 50;
$img = imagecreate(100,100);
$color = imagecolorallocate ($img, 200, 200, 200);
imagerectangle($img, 0,0,99,99, $color);
$color = imagecolorallocate ($img, 255, 0, 0);
imageline($img, 0, $y1, 99, $y2, $color);
header('Content-type: image/png');
imagepng($img);
?>- Heavy
- Forum Contributor
- Posts: 478
- Joined: Sun Sep 22, 2002 7:36 am
- Location: Viksjöfors, Hälsingland, Sweden
- Contact:
What does "?" and ":" mean?volka wrote:Code: Select all
<?php $y1 = (isset($_GETї'startY']))?$_GETї'startY'] : 50; $y2 = (isset($_GETї'endY']))?$_GETї'endY'] : 50; ?>
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
heavy -
This would equate to:
Mac
Code: Select all
$y1 = (isset($_GETї'startY']))?$_GETї'startY'] : 50;Code: Select all
if (isset($_GETї'startY'])) {
$y1 = $_GETї'startY'];
} else {
$y1 = 50;
}