Copy to network share
| From: | Jeff McKeon | Date: | Wed, 01 Jun 2005 12:42:53 +0000 |
| Subject: | Copy to network share | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216144@lists.php.net to get a copy of this message | ||
I've got PHP 4.3 running on a Win2k IIS 5.0 web server. I need to
upload a file and then copy it to a samba share (share level security)
on a linux box across the network.
I can
$dirhandle = opendir(\\\\server\\share);
Readdir($dirhandle);
With no problem but I can't changed to the that dir to copy the uploaded
files to it.
I've tried
Chdir(////server//share);
Chdir(\\\\server\\share);
But it always returns:
Warning: chdir(): No such file or directory (errno 2)
Is what I'm trying to do possible and if so, how?
Many thanks,
Jeff