Re: How to limit source IP in PHP

From: Date: Thu, 13 Sep 2012 19:40:07 +0000
Subject: Re: How to limit source IP in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-319064@lists.php.net to get a copy of this message
Il 13/09/2012 18:19, Mihamina Rakotomandimby ha scritto:
On 09/12/2012 04:53 PM, Tonix (Antonio Nati) wrote:
PHP script can freely choose which IP to bind.
PHP doesnt bind at all. The HTTP server (Apache, Lighthttpd,...) does. PHP is called only when the HTTP server wants (you configure it that way): make Apache handle PHP on conditionnal REMOTE_HOST if possible (I did not look deep into APache documentation)
PHP is like any other programming language. After it is called by apache, he can read and write files, as well as opening incoming and outgoing connections. Please check carefully http://www.php.net/manual/en/book.sockets.php. Regards, Tonino -- ------------------------------------------------------------ Inter@zioni Interazioni di Antonio Nati http://www.interazioni.it tonix@interazioni.it ------------------------------------------------------------

« previous php.general (#319064) next »