Mixing HTML PHP and sharing Data between Scripts

From: Steve W (zacware_at_comcast.net)
Date: 03/24/04


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>



Relevant Pages

  • Re: Limit desktop & start menu
    ... Create a login script that runs when users log into the TS, and map the R: ... persisitent "R" drive on the server itself and that may cure it. ...
    (microsoft.public.windows.terminal_services)
  • using xps eventquery.vbs on win2k server... need a little assistance
    ... This script does not exist in windows2000 (server) but can be made to ... On my test instance, I was able to query the security ... I can query all logs accept the security log (which ...
    (microsoft.public.win2000.security)
  • Re: Automatic Scheduled Import
    ... query to import the data I'd write a script using the DAO library to ... create and execute the query without using Access itself; ... trouble of installing Access on the server). ... >I have a database on a shared server. ...
    (microsoft.public.access.externaldata)
  • Re: User Independent Mapped Drive
    ... OU that runs a batch file to map the drives. ... server of where they're from. ... script, ...
    (microsoft.public.windows.server.networking)
  • Re: User Independent Mapped Drive
    ... On Jun 30, 12:28 am, Dragos CAMARA ... MCSA Windows 2003 server ... try to put the logon script on the site if you have defined the sites, ... OU that runs a batch file to map the drives. ...
    (microsoft.public.windows.server.networking)

Loading