Projects / smbwebclient.php


smbwebclient.php is a simple PHP script that allows users to access Windows networks from a Web browser (using Samba tools).


Recent releases

  •  30 Mar 2012 11:52

    Release Notes: This bugfix release fixes a bug related to downloading files.

    •  29 Feb 2012 08:35

      Release Notes: This release has a patch to support PHP 5.

      •  20 Apr 2005 20:29

        Release Notes: A bug in downloading files with several versions of smbclient has been fixed.

        •  23 Mar 2005 12:08

          Release Notes: This release adds the ability to download a folder in .tar, .tgz, and .zip.

          •  16 Mar 2005 23:36

            Release Notes: A new menu option to log out. The French translation has been updated.

            Recent comments

            03 May 2012 14:05 marxjohnson

            Thanks for making and maintaining this project!
            I have a few feature requests from my users which would be a great help if you could consider implementing them.
            The first is to upload multiple files, either as a zip that gets expanded or by selecting several at once.
            Also, the ability to move and delete files would be excellent. Currently you can rename them, but only at their current location.

            Many Thanks
            Mark Johnson

            24 Nov 2010 08:51 t_om

            If you are communicating with a ISO-8859 share and can view directories but cannot access files or directories that have special (e.g. scandinavian) characters in their names and get OBJECT_NAME_NOT_FOUND errors instead, you need to add a proper setlocale() call into the smbwebclient.php script as otherwise PHP's escapeshellarg() calls strip these special characters from smbclient calls.

            Here's the patch for Finnish file names:

            --- index-orig.php 2010-11-10 10:30:49.000000000 +0200
            +++ index.php 2010-11-24 10:41:15.000000000 +0200
            @@ -49,4 +49,8 @@
            $SMBWEBCLIENT_VERSION = '2.9';
            +# Setting locale
            +setlocale(LC_CTYPE, "fi_FI");

            02 Mar 2009 22:32 seaq

            mime types for OpenOffice and Office2007 and accents
            Hi, how can i add more mime.types for OpenOffice and Office 2007?

            also anyone knows how to solve the accents issue??

            thanks in advance

            12 Feb 2009 03:04 tmleow

            login failed for samba 3.2
            samba 3.2 smbclient "-N" option has different outcome from the previous releases.


            $cmdline = $this->cfgSmbClient.' '.$smbcmd.' '.$options.' -N ';


            $cmdline = $this->cfgSmbClient.' '.$smbcmd.' '.$options.' ';

            may help.

            30 Jul 2007 02:11 dj_judas21

            little problem with zip download
            I recently installed smbwebclient 2.9 on my web server. I am very impressed with your work, although I have one small problem. When I use the option to download the folder as a zip file, it fails. My apache error log shows the following:

            zip error: Nothing to do! (try: zip -r -q /tmp/ . -i *)

            cat: /tmp/ No such file or directory

            rm: cannot remove `/tmp/': No such file or directory

            Obviously I checked that /tmp is world-writeable. Following the suggestion in the first line of that error log, i added ". -i" into line 227 of the script, which gave the following error:

            zip error: Nothing to do! (/tmp/

            cat: /tmp/ No such file or directory

            rm: cannot remove `/tmp/': No such file or directory

            I am using the following versions of software

            CentOS 5.0

            Kernel 2.6.18-8.1.8.el5

            Apache 2.2.3

            PHP 5.1.6

            zip 2.31

            tar 2:1.15.1-23.el5

            I had a look at the script code, but I am not familiar with php. I hope you can help me to fix this problem!

            Many thanks in advance,



            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.