Welcome Guest, Not a member yet? Register   Sign In
how can i use fopen() with CodeIgniter?
#1

[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!


Messages In This Thread
how can i use fopen() with CodeIgniter? - by El Forum - 06-14-2010, 02:05 AM
how can i use fopen() with CodeIgniter? - by El Forum - 06-14-2010, 02:33 AM
how can i use fopen() with CodeIgniter? - by El Forum - 06-14-2010, 03:40 AM
how can i use fopen() with CodeIgniter? - by El Forum - 06-14-2010, 03:45 AM
how can i use fopen() with CodeIgniter? - by El Forum - 06-14-2010, 09:02 PM
how can i use fopen() with CodeIgniter? - by El Forum - 06-15-2010, 06:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB