You are here: Re: trim last folder in a path « All PHP « IT news, forums, messages
Re: trim last folder in a path

Posted by paul on 06/28/05 05:57

Philip Olson wrote:
> Or simply check out the dirname() and basename() functions. Okay,
> basename() is what you want but they both are useful :-)
>

Thanks but not what I needed this time. I needed the final folder in a
long path as retrieved by getcwd() 'GET Current Working Directory'.

basename() returns the file name minus extension... which I can use
elsewhere in this script as it happens!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация