[PHP] Get Current Filename HOWTO

2002-03-28 Thread Patrick Hartnett

It seems I spoke to quick...here is how to get the current file name.

$this_file = $_SERVER['REQUEST_URI'];
echo( $this_file );

the result is formatted as follows:

   /applications.php



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: [PHP] Get Current Filename HOWTO

2002-03-28 Thread bvr


note that this var. includes the query string, for example:

/applications.php?cat=browsers

bvr.



Patrick Hartnett wrote:

 It seems I spoke to quick...here is how to get the current file name.

 $this_file = $_SERVER['REQUEST_URI'];
 echo( $this_file );

 the result is formatted as follows:

   /applications.php



 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx





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