Re: Arrggg: stripping a file name
| From: | Justin Patrin | Date: | Fri, 03 Dec 2004 23:24:40 +0000 |
| Subject: | Re: Arrggg: stripping a file name | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15999@lists.php.net to get a copy of this message | ||
On Fri, 3 Dec 2004 18:10:45 -0500, Jeff Jordan <jjordan@sc.rr.com> wrote:
> I would appreciate any help someone can give.
>
> I have a field that contains c:\myfiles\pictures\abc.jpg
>
> all I want to store in my table is abc.jpg
>
> The last effort was
>
> $myfile = explode('\x92', $_POST[frontelevsrc]);
> $_POST[frontelevsrc] = array_pop($myfile);
>
> note: I have also tried "\x92" (double quotes).
>
> Can anyone help?
>
http://us4.php.net/manual/en/function.basename.php
--
Justin Patrin