what is cURL in php

cURL is a library that allows PHP applications to communicate with other servers. 

Example :

$url = “www.example.com”; // Desired URL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$returned = curl_exec($ch);
curl_close ($ch);
echo $returned;

command to list files in dos

dir – Lists all files and directories in the directory that you are currently in.
dir /p – It will display all files one page at a time.
dir /w- You can use this command to list just the files and directories going horizontally
dir /s /w /p – Llist all the files and directories in the current directory and the sub directories after that, in one
dir /s –   Lists the files in the directory that you are in and all sub directories after that directory
dir *.exe – The above command lists any file that ends with .exe.
dir >file.txt -Takes the output of dir and store  it to the file file.txt
dir /s |find “i” |more – List all directories, one screen page at a time, and see the number of files in each directory and the amount of space each occupies.
dir /ad  – List only the directories in the current directory.
page at a time.
dir /on-List the files in alphabetical order
dir /o-n- List the files in reverse alphabetical order.