You are here: Re: [PHP] SCRIPT_NAME « PHP « IT news, forums, messages
Re: [PHP] SCRIPT_NAME

Posted by Jasper Bryant-Greene on 10/22/05 04:02

On Fri, 2005-10-21 at 21:01 -0400, Robert Cummings wrote:
> Oh I know, I was just pointing out that it won't work :) Doesn't work
> because it only strips off the first path segment (assuming no off by
> one error also ;). For instance:
>
> /a/b/c/d/foo.php
>
> becomes:
>
> a/b/c/d/foo.php
>
> but the OP wanted:
>
> foo.php

It will actually work... Did you not notice that he was using
strrpos() ? Note the extra 'r' in there :) http://php.net/strrpos

--
Jasper Bryant-Greene
General Manager
Album Limited

e: jasper@album.co.nz
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

 

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

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