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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php