Home > Archive > PHP on Windows > September 2004 > RE: [PHP-WIN] Reading mapped drive with PHP5
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: [PHP-WIN] Reading mapped drive with PHP5
|
|
| Trevor Gryffyn 2004-09-14, 3:57 pm |
| I found this page relating to mapped drives and PHP:
http://bugs.php.net/bug.php?id=3D26214&edit=3D1
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:
http://www.phpbuilder.com/board/sho...adid=3D10262019
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]=20
> Sent: Tuesday, September 14, 2004 5:56 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Reading mapped drive with PHP5
>=20
>=20
> Hi,
>=20
> No response received after my request yesterday, so I'll try again.
>=20
> I have a script that copies a file from a mapped drive on my=20
> local network
> and places it in a particular directory on my laptop. I then=20
> do somethjing
> with the file.
>=20
> While I ran PHP4.3 it worked like a dream, and since=20
> upgrading to PHP5, it
> just ignores the call - not even an error message is getting=20
> displayed.
>=20
> Can anyone shed any light on why this is happening (access permissions
> haven't changed since upgrading)?
>=20
> Better still, does anyone know the solution?
>=20
> Cheers
>=20
> George in Oxford
>=20
> --=20
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
>=20
| |
| George Pitcher 2004-09-15, 4:02 am |
| 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:
> http://www.phpbuilder.com/board/sho...readid=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
>
>
|
|
|
|
|