Re: PHP and ISMAP

From: Date: Fri, 29 Jul 2005 13:10:40 +0000
Subject: Re: PHP and ISMAP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219599@lists.php.net to get a copy of this message
Michelle Konzack wrote:
Hello *, I have a landmap splited into 100x100 pixel parts and show it in a grid of e.g. 8x6. Now I like to use ISMAP to get infos about places on this card. The problem is, that I can not send additonal Card infos like <A href="card.php?MAP=offenburg&CARD=00041_00037"> <IMG src="offenburg/00041_00037.jpg" ismap></A> which will result in a URL like
    http://localhost/card.php?MAP=offenburg&CARD=00041_00037?61,67
                             ^                              ^
                              \                            /
                               \                          /
                                 Which does not work  :-(
you said that Apache's ModRewrite is no good for you (your loss - btw you know the connection between modRewrite and php?) but have you tried lookiing in the value of $_SERVER['REQUEST_URI'] as apposed to relying on the contents of $_GET in this case - I am assuming that card.php is actually called. now I'll bet $_SERVER['REQUEST_URI'] contains: http://localhost/card.php?MAP=offenburg&CARD=00041_00037?61,67 and I'm going to assume that you are capable enough to be able to 'parse' that string to extract the information manually... yes? good! that's all folks :-)
This mean, I need to create for each Image a seperatly php file like <A href="offenburg/00041_00037.php"> <IMG src="offenburg/00041_00037.jpg" ismap></A> with the MAP-Data and use "include" to get the rest of the CGI and get an URL like
    http://localhost/offenburg/00041_00037.php?61,67
Here is a test: <http://michelle.konzack.home.tamay-dogan.homelinux.net/tdlandmap/card_overview.php?MAP=offenburg&H_START=41&V_START=30>
        (Clickmaps are not working but scrolling does work)
Q 1:    WHAT is the best solution ?
Q 2:    HOW can I get the ISMAP Data into my PHP-CGI ?
Q 3:    HOW must I make/implement my MAP-Data
Please note, that I have around 400.000 tildes and I can not load a singel filed which contain all the MAP-Data because it is dynamicly updated. Greetings Michelle


« previous php.general (#219599) next »