I want to read a file on a remote webserver. I tried $file = file("http://www.test.de/testfile.htm"); But $file is empty! Any solutions ?
strange. should work.
perhaps $file is not really empty? does it return "Array"? the return value of function file() is an array.
try dumping it with var_dump($file).
just a suggestion, hope that helps you.
Wow, I think you helped me very much :-) thanks. Now I know that $file is an array. I just have to learn, how to extract the data out of the array - perhaps with a loop