You are here: Re: Starting a long php script from a web page « All PHP « IT news, forums, messages
Re: Starting a long php script from a web page

Posted by Jeff on 10/10/14 11:22

Well, I figured it out. The secret is to redirect the output to a file and
use an ampersand to put it into the background.

$ php myphpscript.php > myfile.txt &

Thanks for the ideas though!
Jeff


"Jeff" <bigjman_99@yahoo.com> wrote in message
news:8JsFe.45803$s54.13380@pd7tw2no...
> Hi,
>
> I have php script that takes several hours to run and I'd like to start it
> from a web page. I've tried to use include and the system() function to
> call the script directly but it still waits for it to finish.
>
> Anyone know how to call a script and get on with it?
>
> Thanks!
> Jeff
>

 

Navigation:

[Reply to this 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

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