I am working on PHP. I want to read a file from a server. For example. My file is on 192.168.0.1:/myfolder/myfile.txt
. And i wan to display all the files content on PHP page, The problem is how to open the file on the server. i am using
$file = fopen("192.168.0.1:/myfolder/myfile.txt","r")
or exit("Unable to open the file!");
But this is not working. I get error.
PHP warning: Unable to open the file.
I also allowed couple of option in php.ini. But nothing works.