Re: POST without POSTing
| From: | Tommy Pham | Date: | Thu, 01 Oct 2009 13:14:54 +0000 |
| Subject: | Re: POST without POSTing | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298436@lists.php.net to get a copy of this message | ||
----- Original Message ----
> From: Daniel Brown <danbrown@php.net>
> To: Paul M Foster <paulf@quillandmouse.com>
> Cc: php-general@lists.php.net
> Sent: Wednesday, September 30, 2009 9:58:18 PM
> Subject: Re: [PHP] POST without POSTing
>
> On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote:
> >
> > fsockopen() appears to be part of the standard network functions in PHP,
> > like the header() function. Do you mean that many hosts support the
> > function (as part of PHP) but don't support its use with external hosts?
> > Is there a way to determine this support from looking at phpinfo()?
>
> fsockopen() is a socket function, as the name suggests. Hosts can
> disable the usage of sockets. In fact, check Google and you'll see
> several folks complaining of their host having it disabled.
If the service provider uses jails on *BSD, then sockets are definitely disabled for security
reasons. They don't want you to hack into other people's jail(s) ;)
>
> As for fopen(), there's a php.ini value
>
allow_url_fopen that a
> lot of hosts have set to 'no,' I'm sure with the intent to increase
> security.... but when you can still use cURL and exec('wget'), it kind
> of defeats the purpose.
>
> --
>
> daniel.brown@parasane.net || danbrown@php.net
> http://www.parasane.net/ ||
> http://www.pilotpig.net/
> Check out our great hosting and dedicated server deals at
> http://twitter.com/pilotpig
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php