Draw Lines

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello everyone ..
Can any of you please tell me how to draw lines joining two points in a
page using PHP. Not on an image but on the  page itself?? And the lines
also need to be at an angle to the horizontal.

Vaddina Prakash Rao

Re: Draw Lines

Vaddina, PHP doesn't actually do any drawing (unless you're using it to
generate an image), but some DHTML mixed with PHP might get you where
you want to be.  I just did a quick look on google (
http://www.google.com/search?hl=en&q=dhtml+draw+diagonal+line&spell=1 )
but the first three items that I checked seem to talk about using
images.  It seems that it might not be possible to do that without an
image.  Flash might be a good solution for something like that, I know
there's ways to implement that to work with a PHP script, but I've
never actually done that myself.  http://us2.php.net/swf

Hope that helps

Site Timeline