matthew9090 Posted May 21, 2011 Share Posted May 21, 2011 this is hard to explain but how can you make it so as php executed the script it shows whats happening as it goes. An example of this is the google sitemap generator. it shows the url every time it finds a new one. Do you need to use ajax. Link to comment https://forums.phpfreaks.com/topic/237041-queston/ Share on other sites More sharing options...
dragon_sa Posted May 21, 2011 Share Posted May 21, 2011 If you mean that when the script does something you want a result visible on the page? To do this you would put an echo tag after each part of the script you want to display with the message you want to display in it, as long as you are not using header redirect it will echo each message as it processes your scripts. eg if ($blah=mysql_query("UPDATE table SET blah='blah' WHERE id='someID'")) { echo "blah has been updated<br/>"; } if (copy some image to the server) { echo "some image has been copied to the server<br/>"; } etc etc Link to comment https://forums.phpfreaks.com/topic/237041-queston/#findComment-1218390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.