Copy network file from a Linux host to my Linux server using PHP -


i trying retrieve network file opensuse 13.1 host opensuse 13.2 webserver, don't seem have success.

first check if target directory directory:

$path = "\\\\192.168.xxx.xxx\\public"; if(is_dir($path)){ // returns false every time.   return true; } 

in case function is_dir() returns false, although folder exists , has 777 permisions, ip correct, , computer turned on. have tried combinations of formatting network path, including $path = "smb://192.168.xxx.xxx/public"; witch returns error

unable find wrapper "smb" - did forget enable when configured php?

could tell me missing?

would work same through openvpn centos 6 webserver , ubuntu 14 host?

php has no built-in samba support on linux platform. need mount remote share (requires superuser-equivalent access) , access contents local filesystem.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -