Re: fopen() vs. fsockopen()
| From: | Evan Nemerson | Date: | Tue, 27 May 2003 01:12:00 +0000 |
| Subject: | Re: fopen() vs. fsockopen() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149023@lists.php.net to get a copy of this message | ||
I don't think either is inherintly faster or more secure. fopen is easier to
use, fsockopen offers more functionality (for example, fopen is pretty
useless for POP-3, but w/ fsockopen it's a breeze).
If the HTTP request is a simple GET, you can just use fopen. If you need
something more complicated, check out the HTTP_Request package @ PEAR
On Monday 26 May 2003 12:33 am, Thomas Hochstetter wrote:
> Hi there.
>
> Quick question: which one of the two is more secure and faster? fopen() or
> fsockopen(). We are opening with an http call.
> Also, fsockopen() lets you decide whether to POST or GET, what does fopen
> do?
>
> peace
> Thomas