PHP CURL: The powerful and useful library to fetch contents from websites remotely. Using Php CURL you can able to download the webpage source of any website and store it to a php variable. Curl requests to any webpage server and downloads the content.
cURL stands for Client for URLs. It allows us to transfer files having URL syntax. It supports FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE.
To enable curl library with XAMPP we need to modify the php.ini files in xampp folder.
Step 1: Locate the following files:
Step 2: Uncomment the following line on your php.ini file by removing the semicolon.(just remove semicolon)
Step 3: Restart your apache server.
Step 4: Check your phpinfo if curl was properly enabled. Just create a php file with the following contents below and save it as phpinfo.php