Re: [PHP] read smb drive

2010-11-05 Thread Alexander Holodny
Small and maybe useless note about privileges required to exec 'mount' command via php's system(): root is not required if 'user' option exists in /etc/fstab. It is true because mount cmd has always root privileges due to suexec bit and it decides whether calling user is authorized to mount somethi

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On Fri, 2010-11-05 at 11:06 -0600, Nathan Nobbe wrote: > On Fri, Nov 5, 2010 at 11:01 AM, Alexandr wrote: > > > Nathan Nobbe пишет: > > > > On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling >> >wrote: > >> > >> > >> > >>> On 5 November 2010 16:30, Nathan Nobbe wrote: > >>> > >>> > On Fri,

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 11:01 AM, Alexandr wrote: > Nathan Nobbe пишет: > > On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling > >wrote: >> >> >> >>> On 5 November 2010 16:30, Nathan Nobbe wrote: >>> >>> On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples >>> wrote: >>> >>> On Fri,

Re: [PHP] read smb drive

2010-11-05 Thread Alexandr
Nathan Nobbe пишет: On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling wrote: On 5 November 2010 16:30, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9:48

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling wrote: > On 5 November 2010 16:30, Nathan Nobbe wrote: > > On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples > wrote: > > > >> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > >> > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples > wrote: > >>

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:43, Richard Quadling wrote: > On 5 November 2010 16:30, Nathan Nobbe wrote: >> On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: >> >>> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: >>> > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: >>> > >>> > > Hey g

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:30, Nathan Nobbe wrote: > On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: > >> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: >> > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: >> > >> > > Hey guys (and gals) >> > > >> > > I am writing something that ne

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: > On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > > > > > Hey guys (and gals) > > > > > > I am writing something that needs to connect to a SMB server... can > this > > > be do

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > > > Hey guys (and gals) > > > > I am writing something that needs to connect to a SMB server... can this > > be done easliy? > > > > I copied a sample code from php.net that used the sy

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > Hey guys (and gals) > > I am writing something that needs to connect to a SMB server... can this > be done easliy? > > I copied a sample code from php.net that used the system() command and > mounted the SMB to a /mnt/tmp partion, and technic