Many times we normally face problems while reading a file using url
For e.g :
$url = ‘http://somesite.com/somefile.txt’;
$fp = fopen($url,”r”);
To allow the fopen to get the contents of the file through url, do the following settings in php.ini file :
allow_url_fopen = On
allow_url_include = On
By setting above 2 directives to ‘On’, fopen will be able to read the contents from url.





Social comments and analytics for this post…
This post was mentioned on Twitter by wordpressapi: Solved : fopen and fread not working with url in php http://bit.ly/ckAwmJ...
Im happy I located this blog site, I couldnt find any info on this subject matter prior to. I also run a niche site and if you are ever interested in doing some visitor writing for me you should feel free to let me know, im always look for people to check out my webpage. Please stop by and leave a comment sometime!
I don’t agree with everything in this summary, but you do make some very good points. Im very interested in this topic and I myself do alot of research as well. Either way it was a well thoughtout and nice read so I figured I would leave you a comment. Feel free to check out my website sometime and let me know what you think.
This is a good write-up, I was wondering if I could use this posting on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.
Excellent site, where did you come up with the info in this article? Im pleased I found it though, ill be checking back soon to see what other articles you have.
I dont know what to say. This is absolutely one of several far better blogs Ive read. Youre so insightful, have so much actual stuff to bring on the table. I wish that much more people read this and get what I got from it: chills. Excellent job and excellent web site. I cant wait to read additional, retain them comin!
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely useful for me.