note 76716 added to function.pfsockopen

From: Date: Fri, 27 Jul 2007 14:38:57 +0000
Subject: note 76716 added to function.pfsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-128981@lists.php.net to get a copy of this message
Confusion arises as to when PHP starts a new connection using all the "persistent" versions of any function, and this depends entirely on how you run your PHP. In real CGI mode, that is, one process per script, persistent functions do the exact same as their "temporary" equivalents. If you have a threaded Apache MPM, this persistence will open a connection per thread, but not immediately. Think of it as a single PHP instance for each thread. If you run prefork, the MPM that forks the Apache server into several accept()ing subprocesses, you'll have one PHP instance per process. This isn't always true as I might've missed some gotchas, but in general, do know that a persistent can only try to be persistent. As for grey at greywyvern dot moc: A cronjob would be a lot better suited for this, and have it periodically update the index rather than request ~200 pages each time somebody searches, at least from what you describe it as. ---- Server IP: 129.16.214.50 Probable Submitter: 80.217.189.62 ---- Manual Page -- http://www.php.net/manual/en/function.pfsockopen.php Edit -- https://master.php.net/note/edit/76716 Del: integrated -- https://master.php.net/note/delete/76716/integrated Del: useless -- https://master.php.net/note/delete/76716/useless Del: bad code -- https://master.php.net/note/delete/76716/bad+code Del: spam -- https://master.php.net/note/delete/76716/spam Del: non-english -- https://master.php.net/note/delete/76716/non-english Del: in docs -- https://master.php.net/note/delete/76716/in+docs Del: other reasons-- https://master.php.net/note/delete/76716 Reject -- https://master.php.net/note/reject/76716 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128981) next »