Re: Re[2]: [PHP-WIN] is_file() can't tell the difference between file and directory in Win32...
| From: | Jack Kelly Dobson | Date: | Mon, 04 Nov 2002 18:29:52 +0000 |
| Subject: | Re: Re[2]: [PHP-WIN] is_file() can't tell the difference between file and directory in Win32... | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16725@lists.php.net to get a copy of this message | ||
Passing the whole path does work as well.
I wrote the attached script so departments in our company could put files on
out internal website by dragging and dropping to a shared folder. I have to
find away around the "This page has expired" message when you click the
"back" button but other than that it works fine.
Let me know if you like it.
Any suggestions on the expiration issue?
j-
"Alexander Kuznetsov" <sanych@cstrade.koenig.ru> wrote in message
news:137465406148.20021104181304@cstrade.koenig.ru...
> Hello Jack,
>
> Monday, November 04, 2002, 6:09:52 PM, you wrote:
>
> JKD> I answered my own question with a little digging on the PHPBuilder
page...
>
> JKD> is_file() and is_dir() will report everything as a directory unless
you
> JKD> first chdir() to the directory. After I added the chdir() it worked.
Anyone
> JKD> know if that's going to be changed in the future?
>
> JKD> (I love recursion!)
>
> [... skiped ..]
>
> there is a easier way to get is_file & is_dir working on win32:
> u just need to put full path to file or dir
>
> is_file("c:\web\index.html");
>
> I've had such a problem.
>
> --
> Best regards,
> Alexander Kuznetsov
>
>
begin 666 dir_list.zip
M4$L#!!0`
@(%-B9"U#CWVTN
$%L%`B```26YE='!U8B]W=W=R;V]T
M+W1E<W0O9G5N8W1I;VYS+G!H<.532V^"0!"^F_@?IM1T,6DE/2,V5+"85#06
MF_1$$->R*5W(LL8TC?^]NQ3L*M53;R4\=F:^F6]>]._:K79KO:$Q)QF%88+C
MMW"4L? IC8I$[^013[KPV6X!`%F#7FR6!6??^FLA<I9B6L-NX+9[+1ZXL$ S
MM-I/7"4`K.K;DU:SM.W*-\-\P^HPPK [2.H!\] A#,<\8Q_A(RDXH:^'J766
M48'#%6$@F0G%/-\LC>UVR[*,5U0JIE%G;>N:^U([0@R3B*Y2+#RR'%.A^$&*
M*KY34,K<)D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