open remote file: password problem under SMB

From: Date: Mon, 10 May 2004 07:43:19 +0000
Subject: open remote file: password problem under SMB
Groups: php.general 
Request: Send a blank email to php-general+get-185780@lists.php.net to get a copy of this message
Hi, I need to open files on a remote computer (from windows to windows) The path is like \\servername\share\file.txt The SMB protocol is supported in PHP and ususally works very well on simple LAN networks (see http://be2.php.net/manual/en/wrappers.php) The default user is the user running the web server (IIS or Apache) However, I need to use a specified user and password. I have searched the php docs and the web about inserting user and password info into the URL, but found no help. I know SMB allows to define a user and a password,such as most protocols (ftp://usrer:password@server/share, etc.). But what the hell should I do to use a user and password in the PHP implemetation of SMB?? Under windows, we use 'net use * \\smbserver\share password /user:username', so the user and password are not part of the URL of the file. Could someone help me? thank you vincent

« previous php.general (#185780) next »