siddscool19 Posted July 1, 2011 Share Posted July 1, 2011 I am connecting to a page using cURL in php and when transferring data to a string using CURLOPT_RETURNTRANSFER and then running my filters on the output. But since the page is very bulky it takes time to load and so i want a sort of progress meter which can show the last line the php is currently retreiving from the page it is fetching. Quote Link to comment https://forums.phpfreaks.com/topic/240854-analyze-page-result-as-php-fetches-it-using-curl/ Share on other sites More sharing options...
xyph Posted July 1, 2011 Share Posted July 1, 2011 Your best bet here is to use AJAX. A progress meter is tricky using cURL. You'd put a loading gif where your content will go, then call the content from an external php script using AJAX. Once the ajax request is complete, hide the gif and fill the div with the content. Quote Link to comment https://forums.phpfreaks.com/topic/240854-analyze-page-result-as-php-fetches-it-using-curl/#findComment-1237136 Share on other sites More sharing options...
siddscool19 Posted July 1, 2011 Author Share Posted July 1, 2011 Thanks for the reply, I never used AJAX so don't have much idea about it, I will learn and try it Quote Link to comment https://forums.phpfreaks.com/topic/240854-analyze-page-result-as-php-fetches-it-using-curl/#findComment-1237155 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.