Re: Dos Paths
| From: | Michael Sims | Date: | Wed, 10 Jul 2002 13:02:09 +0000 |
| Subject: | Re: Dos Paths | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106788@lists.php.net to get a copy of this message | ||
On Wed, 10 Jul 2002 13:56:39 +0100, you wrote:
>The problem with this method is assuming the ~1 part. What if I have:
>
>'My Directory' -> MYDIRE~1
>'My DirectoryForPics' -> MYDIRE~2
>
>Now if your path has 'My DirectoryForPics' it's going to translate that into
>MYDIRE~1 which won't work.
>
>HTH
>
>Danny.
Yeah, I mentioned that in my original post (see below). I left that
particular issue as an exercise for the reader. :-)
>----- Original Message -----
>From: "Michael Sims" <mhsims@midsouth.rr.com>
>To: <php-general@lists.php.net>
>Sent: Wednesday, July 10, 2002 1:48 PM
>Subject: Re: [PHP] Dos Paths
[...]
>One last thing. You can't really create a function like this without
>accessing the filesystem that these files are going to be stored on.
>For example, let's say you have a file called "my resume.doc" The DOS
>equivalent to this would be "myresu~1.doc" UNLESS there was already
>another file in the same directory that had that DOS name. So, let's
>say there was already another file by the name of "my results.doc" in
>the directory. Then your "my resume.doc" would be called
>"myresu~2.doc" The function below does not account for this.
[...]