Re: remove words with a delimiter

From: Date: Sat, 02 Dec 2000 09:20:42 +0000
Subject: Re: remove words with a delimiter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28293@lists.php.net to get a copy of this message
$tmp = "this/that/the"; echo substr ($tmp, 0 , (strrpos ( $tmp, "/") + 1)); Jay ----- Original Message ----- From: "Peter Benoit" <pbenoit@triton-network.com> To: "'Toby Butzon'" <php-lists@imawebdesigner.com> Cc: <php-general@lists.php.net> Sent: Friday, December 01, 2000 3:57 PM Subject: RE: [PHP] remove words with a delimiter > Well I want to remove it from the string, not from the webserver... > > I guess if it was like $tmp = "this\that\the"; > > and then removing \the from $tmp > > make sense? > > * -----Original Message----- > * From: Toby Butzon [mailto:php-lists@imawebdesigner.com] > * Sent: Friday, December 01, 2000 3:53 PM > * To: Peter Benoit > * Subject: Re: [PHP] remove words with a delimiter > * > * > * Make the file "that.htm" be a default document (ie, rename it to > * index.html). Other than that, there's not a whole lot you > * can do. That's not > * really a PHP problem - it's more of a webserver issue .... > * but if you remove > * that.htm and don't make it a default document, how would > * ANYTHING know what > * file you want? > * > * Toby Butzon > * [ criticism spurs improvement ] > * > * > * ----- Original Message ----- > * From: "Peter Benoit" <pbenoit@triton-network.com> > * To: "PHP List" <php-general@lists.php.net> > * Sent: Friday, December 01, 2000 3:45 PM > * Subject: [PHP] remove words with a delimiter > * > * > * : in my URL I want to remove the actual file name > * : > * : like www.myserver.com/this/that.htm > * : > * : to www.myserver.com/this/ or www.myserver.com/this > * : > * : how can I do that? > * : > * : thanks, > * : Pete > * : > * : > * : -- > * : PHP General Mailing List (http://www.php.net/) > * : To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > * : For additional commands, e-mail: php-general-help@lists.php.net > * : To contact the list administrators, e-mail: > * php-list-admin@lists.php.net > * : > * : > * > * > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#28293) next »