Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3194 > unrolled thread
| Started by | houghi <houghi@houghi.org.invalid> |
|---|---|
| First post | 2011-09-22 20:32 +0200 |
| Last post | 2011-09-28 11:31 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.php
Showing last part of a directory houghi <houghi@houghi.org.invalid> - 2011-09-22 20:32 +0200
Re: Showing last part of a directory The Natural Philosopher <tnp@invalid.invalid> - 2011-09-22 20:10 +0100
Re: Showing last part of a directory houghi <houghi@houghi.org.invalid> - 2011-09-22 21:32 +0200
Re: Showing last part of a directory tamouse <tamouse.lists@gmail.com> - 2011-09-28 11:31 -0700
| From | houghi <houghi@houghi.org.invalid> |
|---|---|
| Date | 2011-09-22 20:32 +0200 |
| Subject | Showing last part of a directory |
| Message-ID | <slrnj7mvq2.pni.houghi@penne.houghi> |
I have a parameter with the content of e.g. $film="/media/video/download/tv/Lost Girl" All I want is the 'Lost Girl' part so it becomes $film="Lost Girl" I am a bit at a loss as to what to use. Most likely trivial to do, I am sure, but my knowledge of php is too limited that I am not even sure what to enter as a search. houghi -- Let's not be too tough on our own ignorance. It's the thing that makes America great. If America weren't incomparably ignorant, how could we have tolerated the last eight years? -- Frank Zappa, in 1988
[toc] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2011-09-22 20:10 +0100 |
| Message-ID | <j5g16r$5sp$1@news.albasani.net> |
| In reply to | #3194 |
houghi wrote: > I have a parameter with the content of e.g. > $film="/media/video/download/tv/Lost Girl" All I want is the 'Lost Girl' > part so it becomes $film="Lost Girl" > > I am a bit at a loss as to what to use. Most likely trivial to do, I am > sure, but my knowledge of php is too limited that I am not even sure > what to enter as a search. > > houghi http://uk.php.net/pathinfo
[toc] | [prev] | [next] | [standalone]
| From | houghi <houghi@houghi.org.invalid> |
|---|---|
| Date | 2011-09-22 21:32 +0200 |
| Message-ID | <slrnj7n3b1.pni.houghi@penne.houghi> |
| In reply to | #3195 |
The Natural Philosopher wrote: > houghi wrote: >> I have a parameter with the content of e.g. >> $film="/media/video/download/tv/Lost Girl" All I want is the 'Lost Girl' >> part so it becomes $film="Lost Girl" >> >> I am a bit at a loss as to what to use. Most likely trivial to do, I am >> sure, but my knowledge of php is too limited that I am not even sure >> what to enter as a search. >> >> houghi > > http://uk.php.net/pathinfo Thanks. houghi -- > This is written under the influence of tv channel > Vijf TV (as there was nothing else on). > I am now watching : Bride Wars
[toc] | [prev] | [next] | [standalone]
| From | tamouse <tamouse.lists@gmail.com> |
|---|---|
| Date | 2011-09-28 11:31 -0700 |
| Message-ID | <22726469.224.1317234689423.JavaMail.geo-discussion-forums@vbat14> |
| In reply to | #3194 |
On Thursday, September 22, 2011 1:32:34 PM UTC-5, houghi wrote: > I have a parameter with the content of e.g. > $film="/media/video/download/tv/Lost Girl" All I want is the 'Lost Girl' > part so it becomes $film="Lost Girl" > > I am a bit at a loss as to what to use. Most likely trivial to do, I am > sure, but my knowledge of php is too limited that I am not even sure > what to enter as a search. Simply $film=basename($film); http://php.net/manual/en/function.basename.php
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web