From: Philipp Meier Date: 2002-08-16T20:38:08+09:00 Subject: Re: How do I find the URL of the .rhtml that's being served? --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 16, 2002 at 09:55:46AM +0900, Francis Hwang wrote: > I have a utility class that's being used inside a bunch of different > ..rhtml files. Is there some sort of global variable that I can use to > figure out exactly what URL is being served? I'm thinking of something > like $PHP_SELF in PHP. The server should report this as an environment variable: try adding $ENV.inspect in your script and look for PATH_INFO, PATH_TRANSLATED, QUERY_STRING and SCRIPT_NAME -billy. --=20 Meisterbohne S=F6flinger Stra=DFe 100 Tel: +49-731-399 499-0 eL=F6sungen 89077 Ulm Fax: +49-731-399 499-9 --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9XOQcfBriNoqItSYRAtveAJ97FycHs3woZTcgCm95OxRgxqHNwwCfcH+d CixpmKG9CO1zLlJtmZpBOuQ= =PwSD -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--