PHP Background Search -
i have site user enter search details, click search , send ajax request php script goes off , search requested data. php script can take 30 - 60 seconds run don't think it's ideal keep user waiting long.
my ideal setup php script goes off , it's thing (it saves partial results file whilst gathering everything), browser make request every ~10 seconds see if there in file - instead of waiting entire script finish before can displayed in browser.
i've been reading on different people's solutions , there seems many different things. utilise gearman for? or can simple closing connection browser when search started (i've read peoples conflicting opinions on one, hacky?)? other suggestions?
Comments
Post a Comment