-Karl- Posted March 15, 2012 Share Posted March 15, 2012 I have some PHP code which grabs data from an outside source, depending on a name which is grabbed from the database. However, when you run the script it takes a long time to load because of the amount of times it needs to grab data. What would be the best way to run each part, one at a time, echo it, then run the next one, echo it. On the same page. If you get what I mean? Quote Link to comment https://forums.phpfreaks.com/topic/258997-curl-one-at-a-time/ Share on other sites More sharing options...
batwimp Posted March 15, 2012 Share Posted March 15, 2012 Try using flush() in your loop to output what you have so far. Quote Link to comment https://forums.phpfreaks.com/topic/258997-curl-one-at-a-time/#findComment-1327860 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.