I use GD to create graphs of data that exists in my system. I use a link like this to place the graph image on my page:
<img src="image.php" name="Image">
And this works just fine. Image.php acquires the data to be graphed and creates a png image with it. (And is even able to do it very quickly.)
However, I would also like to have external access that data. Unfortunately, it's is acquired by the graphing function from a UDP broadcast stream and I have no idea how to make it available outside that file (or how to capture it twice, perhaps).
I've had exactly no luck trying to implement a global variable, I suspect, because global variables really aren't global and their scope doesn't span multiple files.
I don't know if this is the right venue for this post, but I'm stumped so far and I had to post it somewhere.
Thanks,
GapD.
Data Access Question
Moderator: General Moderators
Data Access Question
Last edited by GapDragon on Tue May 18, 2010 4:22 pm, edited 1 time in total.
Re: Data Access Question
You could store data in a database or even a flat file.
Re: Data Access Question
It would be nice to use a flat file (simple, easy to understand), but my web server is running on an embedded device with a non-writable file system. Yay!
It did occur to me that I could use MySQL (I've already got the other three letters in LAMP working...), but I was hoping to avoid learning yet another technology that FreeScale probably screwed up. Silly me... I know absolutely nothing about SQL, of course -- can you recommend a decent study site? W3Schools??
Thanks,
GapD.
It did occur to me that I could use MySQL (I've already got the other three letters in LAMP working...), but I was hoping to avoid learning yet another technology that FreeScale probably screwed up. Silly me... I know absolutely nothing about SQL, of course -- can you recommend a decent study site? W3Schools??
Thanks,
GapD.
Re: Data Access Question
w3schools is always an excellent resource. Go through a couple of tutorials on different sites to get an idea of how to really use MySQL. It's a skill that will come in handy over and over again.