Link to home
Start Free TrialLog in
Avatar of cywings
cywings

asked on

reading files in a dir from windows machine.. php running on linux

hi experts,

i want to know is it possible for a php script which is running on linux, to read files in a directory which resides in windows platform?

i have a php program/script running on a linux server. most of the users here are using windows platform.

wut this program do is pretty simple. get the directory path from the user where inside the directory exists like a hundred text files. the program will read all the files in the directory, perform some tasks and put the output into a folder.

so how do I:
a) read the files in the directory specified by the user which is using windows platform on their local machine.
b) is it possible for php to read files from the client side?

would appreciate it if could give/suggest other way/method of doing this.

thank you.
ASKER CERTIFIED SOLUTION
Avatar of nicholassolutions
nicholassolutions
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Barthax
If you are considering a PHP command-line and not a server-side web page, then the Linux machine will need to mount (smbmount) the files of the Windows machine through a Windows share.  Obviously this will need an installation of Samba on the Linux machine to perform the mount operation.  Once the Windows share is mounted then your script can parse the directory through the mount point as per any other mounted partition/mapping.
Avatar of cywings
cywings

ASKER

hmmm nicholassolutions--> will try it out, give me some time...

users require minimum command-line and more on GUI thingy..it's betta if users can just click around to get the program working as desired.

thanx