Re: Copy Network Share W/ Diff. Creds To Local Folder?

From: Date: Fri, 22 Feb 2008 02:47:28 +0000
Subject: Re: Copy Network Share W/ Diff. Creds To Local Folder?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269826@lists.php.net to get a copy of this message
Hello, on 02/21/2008 07:48 PM Jason Paschal said the following: > I'm building a web app on a windows server for a company. > an aspect of that requires grabbing a sound file from a network share, which > i attempted with a windows copy command via exec(), but PHP needs to be able > to pass the authentication credentials. > > runas requires password interactivity, and i've looked at runasspc but that > costs for commercial use and was hoping to avoid it if possible. > > is there a way to finesse runas with PHP? some trick to get PHP to offer > the password? > > or is there some other clever way to make this happen? Yes, you can use this stream handler class that lets you access files in Windows shares as if they were local files: http://www.phpclasses.org/smb4php -- Regards, Manuel Lemos PHP professionals looking for PHP jobs http://www.phpclasses.org/professionals/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.general (#269826) next »