| 
	
 | 
 Posted by Jerry Stuckle on 10/18/06 10:27 
Bob Bedford wrote: 
>>You don't "launch another page with exec()".  Rather, you redirect to the  
>>new page with header('Location: pagename'). 
>> 
>>Just be sure you don't create any output before this.  And you can save  
>>the data you're working on in the session (or pass it as GET parameters). 
>  
>  
> I wanted to avoid to redirect as I've to pass by all records I've already  
> done every time I call the script again and this will be very long. 
>  
> I've got an other answer it has been said to "refresh" the page. Will first  
> look at fsockopen then at this solution. Maybe I'll do both. 
>  
> Thanks. 
>  
> Bob  
>  
>  
>  
 
Yes, I understand it would be a hassle to skip over already-processed  
records.  It's one reason I suggested saving the info in your session.  
Once you've processed a record you can remove it from the "to be  
processed" list (and if necessary add it to a "completed" list). 
 
Refresh is just redirect to the same page, which you can do, also.  But  
fsockopen() won't help.  The process doing the fsockopen() will still  
time out after 10 seconds.  You need to actually transfer control to  
another page (or the same one again). 
 
--  
================== 
Remove the "x" from my email address 
Jerry Stuckle 
JDS Computer Training Corp. 
jstucklex@attglobal.net 
==================
 
  
Navigation:
[Reply to this message] 
 |