Mixing HTML PHP and sharing Data between Scripts
From: Steve W (zacware_at_comcast.net)
Date: 03/24/04
- Next message: Bart Nessux: "Re: php array inserted (element by element) into mysql DB"
- Previous message: Pedro Graca: "Re: php array inserted (element by element) into mysql DB"
- Next in thread: Chung Leong: "Re: Mixing HTML PHP and sharing Data between Scripts"
- Reply: Chung Leong: "Re: Mixing HTML PHP and sharing Data between Scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Mar 2004 16:30:55 -0800
I tried searching first, but couldn't find an answer
My first shot at PHP (what a cool language!)
Wrote a quick script to query a server for xml data and plot it as
points on a map
Easy......, but then I wanted to take that same data set and create an
IMAGE MAP in HTML via PHP so I could click on each data point
It seems that imagepng won't work surrounded by HTML in the same code
my work-around was to basically query the server once to create the
plotted image, and then query the server again in a separate script to
create the image map
while this works, I am querying the server twice for the same data
since I can't figure out how to share thte data with the script that
creates the actual image and the script that creates the html image
map
here is sort of kind of what I would like to do....
$URL = 'http://blahblahblah';
$RawData = @file_get_contents("$URL");
<HTML>
<BODY>
<img src="myscript.php?mode=MakeGraphic&data=$RawData"
<map name="mymap">
<?php myscript.php?mode=MakeImageMap ?>
<map>
<BODY>
</HTML>
- Next message: Bart Nessux: "Re: php array inserted (element by element) into mysql DB"
- Previous message: Pedro Graca: "Re: php array inserted (element by element) into mysql DB"
- Next in thread: Chung Leong: "Re: Mixing HTML PHP and sharing Data between Scripts"
- Reply: Chung Leong: "Re: Mixing HTML PHP and sharing Data between Scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|