You really need an exit(0) or something after a header("location: ....") call as PHP will keep executing code after the header if there is any.
David
David Goodwin
Pale Purple Ltd.
http://www.palepurple.co.uk
0845 0046746
07792 380669
On 9 Mar 2012, at 14:35, Rudi Floren <rud...@go...> wrote:
> How do you redirect?
> Using a Location Header?
>
> In a several project i used the following code snippet:
>
> if ($stillItemsInCVS && !$this->debug){
> header("Location: ".DIR."cron.php?line_no=".$lastLine);
> } elseif ($stillItemsInCVS && $this->debug){
> print "<a href=\"".Conf::read('host')."cron.php?line_no=".$lastLine."\" >Continue...</a>\n";
> }
> Additionally you can add an 301 Header
> Am 08.03.2012 12:18, schrieb Sonam Penjor:
>>
>> Hi,
>>
>> I would appreciate if you could help me on my last problems (regarding the redirection problems). I have been trying and browsing google for the help but in vain. I didn't get definite and concrete solution to the problems.
>>
>> Thank You
>>
>> Sonam
>>
>> On 2/28/2012 4:23 PM, Sonam Penjor wrote:
>>>
>>> Hi,
>>>
>>> I am trying to upload around 2000 users to create mail box. If there are less number of user (300), it works fine. However, number of users are more (2000) it gives problem when redirect function call to create mail box again.
>>>
>>> The brief technical overview.
>>>
>>> 1. storing all the email id in session (no problem)
>>> 2. from session using loop, mail box is created one by one before 5 seconds of maximum execution time and unset the session of created mail box.
>>> 3. every after the max execution time, again it redirects using csv line number and execution time (as recommended) and create again (If redirect call is less then it works fine, but if it is multiple calls, then error occurs) . However, after some time, the following error occurs in chrome :
>>>
>>> "This webpage has a redirect loop
>>> The webpage at http://localhost/pa/trunk/create-bulkmailbox.php?filecsv=postfixadmin&line_no=309&execTime=26.59564614296 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. "
>>>
>>> same cases with IE and Mozilla. It creates only the certain number of mail boxes.
>>>
>>> I am stuck with the above problem. I am even thinking of creating .htaccess file but I am not quite sure whether this will overcome the problems.
>>>
>>> I would appreciate for your advice, recommendations and comments.
>>>
>>> Thanks
>>>
>>> Sonam
>>>
>>>
>>>
>>>
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>
>>
>> _______________________________________________
>> Postfixadmin-devel mailing list
>> Pos...@li...
>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel
>
> <rudi_floren.vcf>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Postfixadmin-devel mailing list
> Pos...@li...
> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel
|