Topic awaiting preservation: Current URL |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: under the bed |
posted 10-20-2002 00:10
Not sure where to go here...no luck figuring out what I need from the manual. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 10-20-2002 00:55
Well, you didn't say which language, so I'm going to assume PHP. In PHP, you could check what $PHP_SELF is. That should be the document calling the URLs if you're using a page that calls various files. If you have something more complex like pages that call pages that call other pages, I'm not sure. |
Maniac (V) Inmate From: under the bed |
posted 10-20-2002 01:12 |
Maniac (V) Inmate From: under the bed |
posted 10-20-2002 03:49
Well, in case it's helpful to anyone else, or in case anyone can see that i'm doing something either stupid or inefficient, here's what I did all in all - code: <?php
|
Paranoid (IV) Inmate From: Milwaukee |
posted 10-21-2002 01:38
If you're on IIS, you won't have the luxury of $PHP_SELF. I wrote a workaround for this; anyone who needs it, give me an email. |
Paranoid (IV) Inmate From: Lebanon |
posted 10-21-2002 09:18
quote:
|
Paranoid (IV) Inmate From: Milwaukee |
posted 10-22-2002 00:47
Funny... not only have I run into a lack of $PHP_SELF in IIS, but I've seen numerous write-ups on the topic. Let me rephrase -- if you use IIS, you might not have $PHP_SELF. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-22-2002 04:31
hey DL 2 quick tips. |
Maniac (V) Inmate From: under the bed |
posted 10-22-2002 14:20
Bit - the $cur_page I had initially imagined broader plans for, and had thought I would have to alter the info from the $PHP_SELF before using it...never went back to remove it. |
Paranoid (IV) Inmate From: Milwaukee |
posted 10-27-2002 01:17
Urk, I must have been half asleep when I wrote those earlier messages... what I meant was that $DOCUMENT_ROOT isn't found on IIS. $PHP_SELF works just fine. |
Obsessive-Compulsive (I) Inmate From: |
posted 10-27-2002 03:55
DL-44, |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 10-27-2002 08:28
you should also check out getenv(). |