Hi there,
For a very specific service, I have created a PHP script that uses the GD
library functions to create a PNG image from a few lines of XML data
describing a simple diagram/drawing. It's cool and works, writing the XML
data in a text editor is straightforward for me because I designed the
format. I have no idea however how I can make a simple online drawing
program that creates this XML code. The code is realy simple, just storing
things like the start and end coordinates of a line and its color. The
program however should be as intuitive as any simple drawing program: you
should see a line preview while you drag the end point after clicking
created a start point. Multiple undo, several colors, text, rectangle and
circle drawing are pretty much all the requirements.
Can I create such a program using just PHP? Any thoughts on how to make
those live line previews?
Or should I reach for other techniques like JavaScript or Java. Any other
suggestion that works well together with PHP and MySQL? I am still in the
dark here, so any hint or link to a somehow related tutorial is very much
appreciated.
Thanks in advance!
Remon Huijts.
For a very specific service, I have created a PHP script that uses the GD
library functions to create a PNG image from a few lines of XML data
describing a simple diagram/drawing. It's cool and works, writing the XML
data in a text editor is straightforward for me because I designed the
format. I have no idea however how I can make a simple online drawing
program that creates this XML code. The code is realy simple, just storing
things like the start and end coordinates of a line and its color. The
program however should be as intuitive as any simple drawing program: you
should see a line preview while you drag the end point after clicking
created a start point. Multiple undo, several colors, text, rectangle and
circle drawing are pretty much all the requirements.
Can I create such a program using just PHP? Any thoughts on how to make
those live line previews?
Or should I reach for other techniques like JavaScript or Java. Any other
suggestion that works well together with PHP and MySQL? I am still in the
dark here, so any hint or link to a somehow related tutorial is very much
appreciated.
Thanks in advance!
Remon Huijts.
Comment