sending header but not leaving page
| From: | Danielle Rijkeboer | Date: | Sun, 04 May 2003 21:24:37 +0000 |
| Subject: | sending header but not leaving page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146379@lists.php.net to get a copy of this message | ||
Hi,
I want to send header information but I don't want to leave my page because
it still has to finish a loop.
This is what my code looks like:
function send($userid,$developerid,$gsm,$text,$sender)
{
$filename = "http://www.website.com/folder/page.cgi?userid=$userid;
header =("location: "$filename");
}
This function is called from another page while in a loop and it has to
finish that loop after sending the header info.
Does anyone know how I can do this?
P.S. I've also tried using fsockopen.. but nothing happens.
$fp = fsockopen("$filename", 80, $errno, $errstr, 30);
Danielle Rijkeboer