Yes, you would infact have to issue an outside command, and to do so,
you are correct in the fact you would have to write a good amount of
code to check the validity of the string being executed. However, unless
you actually install PHP on the samba server, and run it off that,
there's not really a way to manipulate samba files without
mounting/connecting to the share.


On Tue, 2004-02-24 at 10:54, Howard Miller wrote:
> Well, mainly because PHP doesn't (I think) have a mount function. It would
> mean executing an external command. I always regard that as living a bit
> dangerously - it can be difficult to write robust code that will recover
> from a problem that way. 
> 
> Adam Voigt wrote:
> 
> > Why can't you just mount the share on-the-fly when they enter the
> > username and pass?
> > 
> > 
> > On Tue, 2004-02-24 at 06:11, Howard Miller wrote:
> >> Hi,
> >> 
> >> I want to be able to manipulate files that are on my samba file server
> >> from my PHP application. These shares are not normally mounted on my web
> >> server and it would be inconvenient and yet another administative
> >> maintenance task to do so.
> >> 
> >> So... I want to be able to present a form to the user where they can type
> >> a URL (eg, //my.sambaserver/myshare/some/directory), a username and a
> >> password and for PHP to be able to manipulate the files therein.
> >> 
> >> Maybe this is easy, but I can't see how to do it!! Any help appreciated.
> >> 
> >> Thanks!!
-- 

Adam Voigt
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to