InterviewSolution
Saved Bookmarks
| 1. |
How to connect to a URL in PHP? |
|
Answer» Any URL can be connected to PHP easily by making use of the library called cURL. This comes as a default library with the standard installation of PHP. The term cURL stands for client-side URL. cURL make use of libcurl(client-side URL Transfer Library) which supports MANY protocols like FTP, FTPS, HTTP/1, HTTP POST, HTTP PUT, HTTP proxy, HTTPS, IMAP, Kerberos etc. It allows you to connect to a URL and retrieve and display information from that page – like the HTML content of the page, HTTP headers, and their associated data, etc. Steps for connecting with URL using PHP cURL POST are given below:
|
|