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

[eluser]chengfeng[/eluser]
Thanks for your comment! I have 2 websites. I want to use the second project(CI) to read a text file from the first project. When i use fopen() with CI, it doesn't work and so the error above. Then i test my code by copy it and write as stand-alone PHP script, It can be open and echo any text from the text file. These 2 websites are different hosting.
Sorry for bad English. And please tell me if you don't understand. Please!
--------------------
$filename="http://www.example.com/text.txt";
$file = fopen($filename,"r");
echo fread($file,100);
fclose($file);
--------------------


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