Re: how to read the path of the current document's url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Thus wrote Tim Burgan:
> Hello,
> 
> I have a page where the URL is along the lines of 
> http://www.example.com/test.php
> 
> I've tried using the parse_url() function without success.. I'm trying 
> to just get "test.php" returned as a string.

How are you using parse_url()?  $_SERVER['REQUEST_URI'] will have
exactly what you need.



Curt
-- 
Quoth the Raven, "Nevermore."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux