Wednesday, March 7, 2012

Differences Between Fopen And Curl

To use fopen , there are various changes needed in configuration file (php.ini).
To work fopen , PHP will check to make sure that allow_url_fopen is enabled. If it is switched off, PHP will emit a warning and the fopen call will fail.

As in CURL you can customize the request.
You can send the custom headers, generating POST request, uploading files.

Also as for security CURL is not influenced by security configuration in PHP (like forbidden fopen of remote URLS and such).

Please share if any other points.

No comments:

Post a Comment