You are here: Re: server response slowing down « PHP Programming Language « IT news, forums, messages
Re: server response slowing down

Posted by Chris Thompson on 08/03/06 13:42

Hi David,

Thanks for your reply... Although it wasn't the problem, it did get my
brain going in the right direction, so thankyou...

The problem was that I was passing a hidden field from question to question,
which had an apostrophe in it.

I was populating the hidden field with the posted version of itself on each
load of the page, without using the 'stripslashes' command, so PHP was
adding more and more slashes to the hidden field, every time the page was
posted.

I realised the problem, when I did a 'view source' of the page, and saw
pages and pages of \\\\\\\\\\\\\\\\\\\\\\\\\\

Obviously, the amount of slashes was doubling every time, and making the
HTML code being sent back to the client huge, and slowing the load down.

All sorted now.

Thanks to Erwin to, for his reply.

Regards,
Chris.


"David Quinton" <usenet_2005D_email@REMOVETHISBITbizorg.co.uk> wrote in
message news:aj83d21jrds09un0lls25h5cgn0kme89cp@4ax.com...
> On Wed, 2 Aug 2006 12:17:47 +0100, "Chris Thompson"
> <c.thompson@zen.co.uk> wrote:
>
>>Hi All,
>>
>>I have a private website created using HTML/PHP. Within this site, there
>>is
>>a page that has a form (question.php), which is populated depending on the
>>question number that has been posted to it.
>>
>>When the form is submitted, the data is posted back to the same page
>>(question.php), and the code within the page saves the posted data, and
>>displays the next question, and so it goes on...
>>
>>While the page loads almost instantly for the first 15 or so questions,
>>the
>>server response gets gradually slower, to the point where the page takes
>>about 30 secs to start loading after about 18 questions.
>
> Is the page writing each set of responses to MySQL every time, or is
> it mererly appending them to the form as a load of hidden form fields
> - ready to be written when all questions have been answered?
>
> --
> Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
> Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>

 

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

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