Re: dynamic image manipulation

From: Date: Sat, 14 Oct 2000 05:12:26 +0000
Subject: Re: dynamic image manipulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20124@lists.php.net to get a copy of this message
There may be some Javascript trick to do this, although I can't really picture it. If you want this really in real-time you need a Java applet. If you can deal with pseudo-realtime, meaning a frame reload every time you need to update the frame with the graph in it, then PHP can do it. -Rasmus On Sat, 14 Oct 2000, Kdtc wrote: > Kdtc wrote: > > > I have a similar file as button.php, but it creates an empty 800x500 > > image. > > > > Now, I have two frames (top_frame, and bot_frame) on my main window. > > The topframe's source is a PHP file and ditto with the bottom frame. > > > > I'm using javascript(side question: can javascript also > > dynamically manipulate/draw graphics?) to create a series of random > > values > > and then I want them to be plotted (in real time) to the empty image; > > thus, > > creating a graph. So far, my botframe.php is as follows: > > > > Actually, after reading the documentation, it doesn't seem like it's > possible > to dynamically create a line chart in real time while data is being > generated. > It seems like that I need to create a large array for the 400+ points and > then after the data has been generated, then I create the graph using > the array. > > While I'm still confused as to which should be 'responsible' for creating > a dynamic real-time line chart? PHP or Javascript or...? Perhaps I'm > still not clear on 'what' PHP is, but as far as I can determine, it's > a server side language, and thusly, can it not (server side wise) > create a graph while the client watches? > > Ed > > > >

« previous php.general (#20124) next »