Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   alternative scripts for fopen (http://www.go4expert.com/forums/alternative-scripts-fopen-t15869/)

Anima_Hariop 19Jan2009 18:49

alternative scripts for fopen
 
Many free web hosts set allow_url_fopen to off and that's why I can't use fopen. I just want to know if there is a way I can open a file, specifically a text file (*.txt), via an external url.

programmersbank 7Apr2009 16:35

Re: alternative scripts for fopen
 
if you have a .txt file on same server then use fopen function, you can see details at php.net/fopen

or use this line in your .htaccess file
php_value allow_url_fopen 1

you can consider using curl, if it is enabled.

pradeep 15May2009 10:30

Re: alternative scripts for fopen
 
http://curl.haxx.se/docs/ CURL is cool, try that.


All times are GMT +5.5. The time now is 17:50.