<pre> <? print_r($_SERVER) ?> </pre>
This will spew a whole lot of stuff out to the screen, PATH_INFO will be one, PHP_SELF will be another... have a look through the list, do some testing, and decide which element of the $_SERVER array suits your needs.
Justin
On Saturday, August 9, 2003, at 07:44 AM, Jed R. Brubaker wrote:
I am having a bit of a problem with pathinfo. I am looking for a way to
generate a URL from within an included class that would return the URL for
the script that called the class. Pathinfo returns the class file. Is there
a way to get what I need?
Thanks in advanced, Jed R. Brubaker
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- [This E-mail scanned for viruses]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php