smbwebclient.php is a simple PHP script that allows users to access Windows networks from a Web browser (using Samba tools).
| Tags | Filesystems Networking Communications File Sharing |
|---|---|
| Licenses | GPL |
| Implementation | PHP |
Recent releases


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


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


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


Release Notes: File names are now displayed correctly if the name does not use the ISO-8859-1 charset. The Polish translation was updated.


Release Notes: This release adds support for virus scanning of uploaded files.
Recent comments
24 Nov 2010 08:51
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
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
login failed for samba 3.2
samba 3.2 smbclient "-N" option has different outcome from the previous releases.
changing
$cmdline = $this->cfgSmbClient.' '.$smbcmd.' '.$options.' -N ';
to
$cmdline = $this->cfgSmbClient.' '.$smbcmd.' '.$options.' ';
may help.
30 Jul 2007 02:11
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/swcZvAi6vD.zip . -i *)
cat: /tmp/swcZvAi6vD.zip: No such file or directory
rm: cannot remove `/tmp/swcZvAi6vD.zip': 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/swcZYV18Be.zip)
cat: /tmp/swcZYV18Be.zip: No such file or directory
rm: cannot remove `/tmp/swcZYV18Be.zip': 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,
Jonathan
22 Apr 2006 16:51
Re: does this software work on the windows operating system?
I would love to help you with implementing this since this is exactly what I need. I'm sending you an e-mail.