Reply to Re: Offline processing...

Your name:

Reply:


Posted by J.O. Aho on 09/28/13 11:41

Sam wrote:
> Hello all,
>
> The web site that I am building takes various pieces of information
> from the user via forms and generates a number of individual files
> which are then stored on my server for the user to collect.
>
> While this works on my test machines, it can sometimes take up to 15
> seconds for the PHP code to complete and generate the files. While this
> is happening, the browser appears hung.
>
> I'm concerned that when the system goes live, these pauses may increase
> and cause issues for my users.
>
> How can I take this processing offline - so the user can click on to
> other pages in the browser while the PHP code from the 'processing
> page' is executing in the background?

Set the file creation as a cron job, you only make the actual web page script
to store the information that the user wants and once a hour the cron job does
generate with help of the information the page and then mails the result to
the user.

IMHO the best option here.


//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация