You are here: Re: php - header Location very slow « All PHP « IT news, forums, messages
Re: php - header Location very slow

Posted by Syl on 12/31/06 02:30

J.O. Aho wrote:
> One wrote:
> > Hi guys - I have a problem after a client clicks a Confirm button on a
> > form - the form processes the data, inserts into a database, and then
> > redirects using header Location.
> >
> > I have tested this on two different Linux/Apache servers. One works
> > perfectly, the other takes about 90 seconds to redirect.
>
> I suggest you use a small function that writes to a log file a small text
> message and the time stamp, set this before everything you are going to do,
> this way you see where the slowness comes from, can be that the second servers
> connection to the database is so bad it takes it a lot longer to send the data
> to the database which makes a delay before it come to the line where it does
> the redirect.
>
>

Hi Aho - thanks for the reply.
Actually - the database content gets inserted successfully, and then
the confirmation email goes and successfully - and then the redirect.

I know it is the redirect because I query the db and the content is
there, and I also recieve the email - all beofre I see the success page!

 

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

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