RE: [PHP-WIN] Reading mapped drive with PHP5
| From: | George Pitcher | Date: | Wed, 15 Sep 2004 06:34:52 +0000 |
| Subject: | RE: [PHP-WIN] Reading mapped drive with PHP5 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24578@lists.php.net to get a copy of this message | ||
Trevor,
Thanks for your suggestions.
I did manage to solve it in a semi-PHP way. The script buiulds a batchfile
to execute some Java apps. All I did was to build a few lines at the
beginning of the batch file to do the copying at dos level. Did the trick.
Cheers
George
> -----Original Message-----
> From: Gryffyn, Trevor [mailto:TGryffyn@air-cargo-inc.com]
> Sent: 14 September 2004 2:43 pm
> To: php-windows@lists.php.net
> Cc: George Pitcher
> Subject: RE: [PHP-WIN] Reading mapped drive with PHP5
>
>
> I found this page relating to mapped drives and PHP:
> http://bugs.php.net/bug.php?id=26214&edit=1
>
> Since you upgraded your PHP, maybe some of your other settings changed
> as well. This page indicates that mapped drives are user-specific and
> if your PHP script is running as a different user, that it might not
> have access to the same mappings and that cause a problem.
>
> This page:
> ß×»«J
> L¾$Gã‘X(#http://www.phpbuilder.com/board/showthread.php?threadid=10262019
>
> Mentions someone who couldn't use the UNC but could use a mapped drive.
> They said changing to the CGI version enabled them to use the UNC.
> Sounds like a far shot, and I have no idea why this would make a
> difference (I'm sure someone on here does though.. I'd be curious to
> find out).
>
> Some things to look into at least.
>
> -TG
>
> > -----Original Message-----
> > From: George Pitcher [mailto:george.pitcher@ingenta.com]
> > Sent: Tuesday, September 14, 2004 5:56 AM
> > To: php-windows@lists.php.net
> > Subject: [PHP-WIN] Reading mapped drive with PHP5
> >
> >
> > Hi,
> >
> > No response received after my request yesterday, so I'll try again.
> >
> > I have a script that copies a file from a mapped drive on my
> > local network
> > and places it in a particular directory on my laptop. I then
> > do somethjing
> > with the file.
> >
> > While I ran PHP4.3 it worked like a dream, and since
> > upgrading to PHP5, it
> > just ignores the call - not even an error message is getting
> > displayed.
> >
> > Can anyone shed any light on why this is happening (access permissions
> > haven't changed since upgrading)?
> >
> > Better still, does anyone know the solution?
> >
> > Cheers
> >
> > George in Oxford
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>