abdfahim Posted June 20, 2010 Share Posted June 20, 2010 hi experts, Can you please help me finding what wrong i am doing in the following code? The rss.txt file is created, but totally blank. I can see the last message "Done". <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://admin.dsebd.org/admin-real/datafile/quotes.txt'); $fp = fopen('rss.txt', 'w'); curl_setopt($ch, CURLOPT_FILE, $fp); curl_exec ($ch); curl_close ($ch); fclose($fp); echo "done"; ?> I am using freehostia for my hosting and its phpinfo shows following info abour CURL curl cURL support enabled cURL Information libcurl/7.11.2 OpenSSL/0.9.7e ipv6 zlib/1.2.2 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.