bluephoenix
02-26-2003, 12:47 AM
Okay, here's a doozy of a question for y'all...
I'm working on the company website, and since we're a financial institution we have a listing of all the ATMs our members can use without surcharge. The previous webdesigner just threw the information up and it looked like crap. The first thing I did was to organize the information in an XML file, similar to this:
<atm_data>
<area name="Syracuse">
<atm location="Syracuse Mobil" address="123 Main Street" />
<atm location="Public Safety Building" address="511 State Street />
</area>
</atm_data>
I've then created PHP scripts to parse the data and create a nicely formatted table for the results. I've even set up a mechanism where the area names are read and displayed as a drop box, allowing the viewer to see the locations of ATMs for a specific area.
I'm pelase (and so is my supervisor!), but I want to put it "over the top" by displaying a map of the area with the ATM locations starred. But that's where I'm stuck.
I could generate twenty or so maps (one for each area), and each map would have the ATM locations already highlighted. But, if we had an ATM to the network or loose one, then I have to go back, edit the XML data file accordingly, and then modify the map image. Now granted that only having to modify two items as opposed to all 4 or 5 doesn't seem that bad, but I'd like the maps to update themselves, too.
I've checked into SVG but our current server doesn't send them out with the correct MIME-type. And I can't control that because it's hosted by an outside company (I'm working on getting our own server and hosting it inhouse; I think it'll be cheaper and more secure, but that's still at least a year away by the time I clear through proposals and budget setbacks).
So how can I dynamicly generate, modify, or overlay an image over an existing image before serving it to the viewer using PHP?
To see my work so far, http://www.acmgfcu.org/temp/findatm.php It doesn't format the results "all pretty and stuff," I just ran out of time and I'll get to that tomorrow afternoon. But the scripts are functioning properly, and that's the important thing!
Thanks in advance,
-Tim
I'm working on the company website, and since we're a financial institution we have a listing of all the ATMs our members can use without surcharge. The previous webdesigner just threw the information up and it looked like crap. The first thing I did was to organize the information in an XML file, similar to this:
<atm_data>
<area name="Syracuse">
<atm location="Syracuse Mobil" address="123 Main Street" />
<atm location="Public Safety Building" address="511 State Street />
</area>
</atm_data>
I've then created PHP scripts to parse the data and create a nicely formatted table for the results. I've even set up a mechanism where the area names are read and displayed as a drop box, allowing the viewer to see the locations of ATMs for a specific area.
I'm pelase (and so is my supervisor!), but I want to put it "over the top" by displaying a map of the area with the ATM locations starred. But that's where I'm stuck.
I could generate twenty or so maps (one for each area), and each map would have the ATM locations already highlighted. But, if we had an ATM to the network or loose one, then I have to go back, edit the XML data file accordingly, and then modify the map image. Now granted that only having to modify two items as opposed to all 4 or 5 doesn't seem that bad, but I'd like the maps to update themselves, too.
I've checked into SVG but our current server doesn't send them out with the correct MIME-type. And I can't control that because it's hosted by an outside company (I'm working on getting our own server and hosting it inhouse; I think it'll be cheaper and more secure, but that's still at least a year away by the time I clear through proposals and budget setbacks).
So how can I dynamicly generate, modify, or overlay an image over an existing image before serving it to the viewer using PHP?
To see my work so far, http://www.acmgfcu.org/temp/findatm.php It doesn't format the results "all pretty and stuff," I just ran out of time and I'll get to that tomorrow afternoon. But the scripts are functioning properly, and that's the important thing!
Thanks in advance,
-Tim