[eluser]chengfeng[/eluser]
Hi, i am trying to open text file via URL, but the error occurred,it said:
Message: fopen(http://www.example.com/text.txt) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
What should i do? Please help!
Note that if i use fopen() without CI , it's worked, no error occurred. Just simple code.
The code is:
---------------------
$filename="http://www.example.com/text.txt";
$file=fopen($filename,"r");
-----------------------
Thank you indeed!