I am trying to read the content of a file, placed on “c:username.txt”
however, this file is stored on a other compter in the network…
I can manually read the content of the file, using cmd:
[code]
type \192.168.1.101c$username.txt
however, when i try this command trough exec:
[code=php]
echo exec(‘type \192.168.1.101c$username.txt’);
it returns nothing…
so, i tested if exec could not use the command type:
[code=php]
echo exec(‘type c:username.txt’);
however, this did display the content of the local stored file..
how can i read the content of this remote file?
EDIT: replaced “” quotes for ” quotes at the exec commands cuz using $ there.
that didnt solved tho.