I did something similar a while back where if a user submitted a stock
symbol it would fetch the quotes from yahoo within their search range,
but also launch a background process which would fetch daily quotes for
the entire history of that particular stock. In the php script, I had
something like:
`./backgroundgetquote.php $symbol > /dev/null &`;
which would fetch and cache the data for all future requests.
The downside to this was that there was nothing in place to stop 1000's
of unique hits from running the cpu load through the roof.
~Rolan
CED wrote:
exec(), or AJAX.
But I think you need to give us some more info.
Edward JS Prevost II
[EMAIL PROTECTED]
www.EdwardPrevost.info
----- Original Message -----
From: "Brian Dailey" <[EMAIL PROTECTED]>
To: "NYPHP Talk" <talk@lists.nyphp.org>
Sent: Saturday, February 24, 2007 8:13 PM
Subject: [nyphp-talk] PHP and running background tasks...
Hey guys, my google-fu is failing me today so I thought I would turn to
the brilliant minds of the NYPHP.
What I'd like to do is be able to execute a php script in the background
that does NOT impact the load time of the page itself. Something that
runs in the background and doesn't tie up the web server. Does that make
sense? Do any of you have any idea how one would accomplish this?
Thanks!
- Brian
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php