You are here: Re: parallel interpreter/db problem. transaction didn't fix. « PHP Programming Language « IT news, forums, messages
Re: parallel interpreter/db problem. transaction didn't fix.

Posted by fletch on 04/25/06 09:59

> If PHP is being loaded as an apache .SO (DLL) dynamically linked module
> (likely) - would this explain why it's not getting a new pid? PHP wouldn't
> be a new process. Apache would be the process instead of PHP. loading up a
> new module like PHP would simply allocate RAM for the shared functions.

This makes sense, it wouldn't be true if PHP were running as CGI. I
felt that if the two requests were coming in simultaneously then they
would be dispatched to different apache child processes, giving
different pids. If they ended up with the same pid then they came in at
different times, because an apache child process will only do one
request at a time.

Let's crack this.

The root problem is that a script is being called twice to deliver two
different images. So somewhere you no doubt have something like,
<img src="/image.php" />

The problem is when you have many of these you get the same image.

But you presumably dont have this:

<img src="/image.php" />
<img src="/image.php" />

because then the first call to the image would cache the image, giving
you, well, exactly the same problem as you are having now. (Is this the
problem?).

So what you need is

<img scr="/image.php?some_unique_junk" />
<img scr="/image.php?some_other_unique_junk" />

Which potentially gives you a parameter you can throw into seed()

Now, you don't want the same unique junk for different images because
caching works across page loads, so you need to effectively alias the
images with another file name.

HTH

 

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

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