Re: [php] How to get request url string and server hostname

From: Date: Tue, 25 Jun 2002 19:09:24 +0000
Subject: Re: [php] How to get request url string and server hostname
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103822@lists.php.net to get a copy of this message
On Wednesday 26 June 2002 02:56, Harriet Xing wrote: > Hi, > > Would anyone know how to get the http request url string in php? > i.e., if the request is > "http://www.myserver.com/test.php?param1=123", how > can I obtain this string in test.php? Look through the $_SERVER (or $HTTP_SERVER_VARS) variable. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The District of Columbia has a law forbidding you to exert pressure on a balloon and thereby cause a whistling sound on the streets. */

« previous php.general (#103822) next »