I want to Make a Script which give result realtime .
In My Script it have 3 steps .
1st step was to grab all links from a webpage .(i use pregmatch_all function
use ajax. (run script in background and poll for current state)
http://jqueryui.com/demos/progressbar/
http://api.jquery.com/get
Reading up on output buffering, output flushing and related topics is definitely a good idea if you are serious about PHP web development.
Flush() would help you.