Re: Address unknown

From: Date: Sat, 02 Feb 2002 21:58:44 +0000
Subject: Re: Address unknown
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83258@lists.php.net to get a copy of this message
In article <000e01c1ac31$2cdf6f20$0100007f@localhost>, hdanaher@earthlink.net (Hugh Danaher) wrote: > Some one please tell me to RTFN!, but first tell me where to look. :-) > > I have a page with an image of a map which delivers the following info to the > address bar of someplace.php. the <img src=image.gif ismap> html code > delivers the coordinates of the cursor when clicked. What I want to do, is > get the following so that I can parse it. > > file:///C:/php/museum/DB MUSE/someplace.php?98,165 phpinfo() <http://php.net/phpinfo> will show you all the server variables at your disposal, including $QUERY_STRING. parse_url() <http://php.net/parse-url> is also a useful one to know about. And explode() <http://php.net/explode> will parse that comma-delimited list of coordinates into an array so you can access the values individually. Cheers! -- CC

« previous php.general (#83258) next »