GapDragon Posted May 18, 2010 Share Posted May 18, 2010 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" width="900" height="400" name="Image"> And this works just fine. Image.php acquires the data to be graphed and creates a png image with it. (And does it very quickly, too.) However, I would also like to have external access that data. Unfortunately, it's 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, maybe). 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. Thanks, GapD Link to comment https://forums.phpfreaks.com/topic/202163-access-to-data-across-multiple-php-files-i-suppose/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.