what is cURL in php

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

Example :

<?php
$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;
?>

Share

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.
Share

Apache Thrift

Thrift is an interface definition language that is used to define and create services for numerous languages. It is used as a remote procedure call (RPC) framework and was developed at Facebook for “scalable cross-language services development”. It combines a software stack with a code generation engine to build services that work efficiently to a varying degree and seamlessly between ActionScript, C#, C++ (on POSIX-compliant systems), Cappuccino, Cocoa, Erlang, Haskell, Java, OCaml, Perl, PHP, Python, Ruby, and Smalltalk. Although developed at Facebook, it is now an open source project in the Apache Software Foundation Incubator. The implementation was described in an April 2007 technical paper released by Facebook, now hosted on Apache. To put it simply, Apache Thrift is a binary communication protocol.
Share

Beginners' Guide , PHP Programmer , Zend Certified Engineer , Magento Certified Developer