Reply to Re: About Resource id's

Your name:

Reply:


Posted by Jerry Stuckle on 10/27/07 14:16

DiAvOl wrote:
> Hello,
>
> I am using a simple php server that I wrote and have some questions
> related to the resource id's. When a new client connects to the server
> or the server opens a file the Resource id number increases normally,
> but when the server closes the socket and the file and then a new
> client connects or file opens, the Resource id still increases without
> reseting to the previous closed id's.
>
> For example:
>
> Client connects to the server...accept();
> Client fd: Resource id #1
> client quits.... fclose/socket_close
> Client connects to the server...accept();
> Client fd: Resource id #2
> client quits.... fclose/socket_close
> ...
> ...
> ...
> Client connects to the server...accept();
> Client fd: Resource id #12456
>
> Shouldn't the resource id reset to #1 when the second client
> connected ? Can this behaviour cause problems to the server ?
>

Why should it? The actual value is immaterial. It is only a unique id
used to identify a reference.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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