Most efficient form submission??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
speedamp
Forum Commoner
Posts: 45
Joined: Tue Apr 29, 2003 3:59 pm

Most efficient form submission??

Post by speedamp »

hi everybody, i am redeveloping a very old site for a client and they might eventually need to handle a 200,000 site submissions/day.

in the past i have used everything from frameworks to classes to straight linear forms, and i was wondering what everybody thinks is the MOST efficient to avoid any crashes?

note: there will be no uploads of any sort....simply text submissions (10-12 fields of data).

thanks,

-michael
User avatar
MindOverBody
Forum Commoner
Posts: 96
Joined: Fri Aug 06, 2010 9:01 pm
Location: Osijek, Croatia

Re: Most efficient form submission??

Post by MindOverBody »

Hm, there's no much to do with forms from perspective of efficiency. Maybe using ajax script might reduce traffic. jQuery offers nice ajax support which provides excellent error event, so if anything crashes you can resend data again. In PHP there's no much things to do or improve, just use fastest function, make few scripts and stopwatch them to se which one is fastest.

Actually, this is quite nice question. I am using same methodology since i learned it at some tutorial many years ago, so I am interested if someone can produce "more efficiently" way of submission. :)
speedamp
Forum Commoner
Posts: 45
Joined: Tue Apr 29, 2003 3:59 pm

Re: Most efficient form submission??

Post by speedamp »

i think one thing i might do is separate the logic....one page to process, one for validation, and then a final DB processing page.

next question: anybody have any thoughts on the most efficient DB connection protocol? pconnect? singleton??

thanks!

-michael
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Most efficient form submission??

Post by Weirdan »

speedamp wrote:hi everybody, i am redeveloping a very old site for a client and they might eventually need to handle a 200,000 site submissions/day.
200 000 / 24 / 3600 = 2.3 rps . Doesn't sound like anything to worry about.
Post Reply