Re: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 8:59 am, Leonard Burton wrote:
 What do I need to do to extract foo.bar from path/to/file.php/foo.bar

 $_SERVER['REQUEST_URI'] will return the whole string but is there
 anything more direct than doing a regex and 'REQUEST_URI'?

http://php.net/basename
http://php.net/phpinfo

Look at output of phpinfo() and use browser Find to find what you
want in a sample script.  Then you know where PHP stores it.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Leonard Burton
Greetings,

What do I need to do to extract foo.bar from path/to/file.php/foo.bar

$_SERVER['REQUEST_URI'] will return the whole string but is there
anything more direct than doing a regex and 'REQUEST_URI'?

Thanks,

--
Leonard Burton, N9URK
[EMAIL PROTECTED]


The prolonged evacuation would have dramatically affected the
survivability of the occupants.

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



RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Pablo Gosse
[snip]
What do I need to do to extract foo.bar from path/to/file.php/foo.bar
[/snip]

The manual is your friend ;o)

http://www.php.net/basename/

HTH,

Pablo

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



RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Jim Moseby
 
 [snip]
 What do I need to do to extract foo.bar from path/to/file.php/foo.bar
 [/snip]
 
 The manual is your friend ;o)
 
 http://www.php.net/basename/
 

Beware that, in the case of an url like
http://www.example.com/path/to/file.php/foo.bar?foo=barbar=foo;,
basename() will return everything past the last /, in this case
foo.bar?foo=barbar=foo.  

JM

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