bhavin12300 Posted December 5, 2008 Share Posted December 5, 2008 hi, i have one php script which uses curl to grab papges.script one by one download 20 pages from web. what i want to do is suppose first page is downloaded,so after this i want to display message on browser that "page1 downloaded" when page2 download is finished, it should display page with message "page two download" in place of previous message like wise it will update user. but when i did it it display all message after script finish its execution. so can anyone guide me how to do it? i dont want to use ajax for now? any way? waiting Link to comment https://forums.phpfreaks.com/topic/135606-solved-how-to-send-some-text-reponse-to-browser-during-execution-of-php-script/ Share on other sites More sharing options...
genericnumber1 Posted December 5, 2008 Share Posted December 5, 2008 after you echo something you can tell the script to send it to the browser immediately without waiting using flush() Link to comment https://forums.phpfreaks.com/topic/135606-solved-how-to-send-some-text-reponse-to-browser-during-execution-of-php-script/#findComment-706541 Share on other sites More sharing options...
bhavin12300 Posted December 5, 2008 Author Share Posted December 5, 2008 ya it work thanks you. Link to comment https://forums.phpfreaks.com/topic/135606-solved-how-to-send-some-text-reponse-to-browser-during-execution-of-php-script/#findComment-706568 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.