473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Silly Question?

This may be a silly question, but I was wondering.

If 10 clients fill out a form on my page simultaneaously and hit submit, how
does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own'
completed form returned ? Or is it possible the clients get mixed up under
some conditions ?

TIA
Pjotr

Jul 17 '05 #1
5 1875
nope.... not possible.
apache tracks this, because it has a "dedicated line" to that specific user
(i.e. ip:port / socket)
don't worry 'bout it. it doesn't happen, unless someone effectively
interferes and spoofs that connection itself.

Michel

"Pjotr Wedersteers" <x3****@westerterp.com> wrote in message
news:41*********************@news.xs4all.nl...
This may be a silly question, but I was wondering.

If 10 clients fill out a form on my page simultaneaously and hit submit, how does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own' completed form returned ? Or is it possible the clients get mixed up under
some conditions ?

TIA
Pjotr

Jul 17 '05 #2
Pjotr Wedersteers wrote:
This may be a silly question, but I was wondering.

If 10 clients fill out a form on my page simultaneaously and hit submit, how
does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own'
completed form returned ? Or is it possible the clients get mixed up under
some conditions ?

TIA
Pjotr


Apache may have several "server processes" that processes the data and each is
multi-threaded - meaning each server process can handle many simultaneous
connections. Each connection is seperate and cannot be mixed up. Considering
Apache is the number one server in production at sites that have hundereds of
hits per second, I don't think you have anything to worry about...

--
Michael Austin.
Jul 17 '05 #3
In article <41*********************@news.xs4all.nl>, Pjotr Wedersteers wrote:
This may be a silly question, but I was wondering.

If 10 clients fill out a form on my page simultaneaously and hit submit, how
does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own'
completed form returned ? Or is it possible the clients get mixed up under
some conditions ?


Each request has a thread or more likely a process handling the request.
The thing that keeps them apart is the operating systems process model.

Sometimes things *can* get mixed up depending on the language and
design, but these are bugs more to do with programming the application
than PHP or Apache. (Servlets can sometimes have problems like this.)

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

Jul 17 '05 #4
Average_Joe <jo*@geniegate.com> wrote:
Sometimes things *can* get mixed up depending on the language and
design, but these are bugs more to do with programming the application
than PHP or Apache. (Servlets can sometimes have problems like this.)


The improvements with the PHP5 OO model should make it possible to use
these same Java/Servlet features in PHP :)

--

Daniel Tryba

Jul 17 '05 #5
In article <cg**********@news.tue.nl>, Daniel Tryba wrote:
Average_Joe <jo*@geniegate.com> wrote:
Sometimes things *can* get mixed up depending on the language and
design, but these are bugs more to do with programming the application
than PHP or Apache. (Servlets can sometimes have problems like this.)


The improvements with the PHP5 OO model should make it possible to use
these same Java/Servlet features in PHP :)


I wish. :-( It's definately getting closer though!

Inner classes and objects that remain in memory after a request are the
main ones on my wish-list. (Also wish for a request type of
object where the parameters are not mangled as PHP does with it's $_POST
and $_GET arrays.)

'Course in a lot of ways, the way PHP does stuff seems to help keep away
some of the problems with servlets, like problems with thread
synchronizing and the startup sluggishness of JSP.

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jenny | last post by:
Hi you al I have two very silly question The first one is In vb 6.0 you can add a procedure, sub or function, by clicking add procedure from the tools item on the menuba I cannot seem to find...
4
by: musosdev | last post by:
I think I'm having a dim day and should just go back to bed, but alas, I cant do that.... I'm writing a peice of code to create XHTML compliant documents using System.IO, there's probably an...
6
by: Adam Honek | last post by:
Hi, I've looked over and over and in MSDN 2005 and just can't find what is a really simple answer. How do I select the first value in a combo box to be shown? I tried the .selectedindex -1...
7
by: Matt | last post by:
I've asked this question to some developers that are much more experienced than I, and gotten different answers --- and I can't find anything about it in the documentation. Dim vs. Private as a...
2
by: Willem Voncken | last post by:
Hi guys, might be a silly question, but i'm wondering whether it is even possible to generate access violations when using C#? I'm new at c# programming, but i have some experience with c++....
1
by: Pontifex | last post by:
Hi all, Has anyone devised a simple method for passing a string to an external script? For instance, suppose I want to produce a title bar that is very fancy and I don't want my main HTML...
2
by: toton | last post by:
Hi, This is a silly question related to syntax only. I have a template class with template member function, How to write it separately in a file (not translation unit, just want to separate...
4
by: Marcin Kasprzak | last post by:
Hello Guys, Silly question - what is the most elegant way of compiling a code similar to this one? <code> typedef struct a { b_t *b; } a_t; typedef struct b {
5
by: Ben Bacarisse | last post by:
Newbie <newbie@gmail.comwrites: <snip> The version you posted in comp.programming has the correct loop. Why change it? -- Ben.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.