Latest Post
Tampilkan postingan dengan label curl. Tampilkan semua postingan
Tampilkan postingan dengan label curl. Tampilkan semua postingan

PHP cURL simple tutorial

Written By Unknown on Selasa, 22 Oktober 2013 | 06.19

CURL is a reflective object-oriented programming language for interactive web applications whose goal is to provide a smoother transition between formatting and programming. It makes it possible to embed complex objects in simple documents without needing to switch between programming languages or development platforms.

The strong point of cURL is the number of data transfer protocols it supports. It supports FTP, FTPS, HTTP, HTTPS, TFTP, SCP, SFTP, Telnet, DICT, FILE and LDAP.

PHP cURL allows you to read websites, upload files, upload data, fetch data and lots of more stuff ... Now its the time to see what we can do we PHP cURL...

PHP cURL example-1 :

<?php
$ch = curl_init ("http://www.alexa.com");             /** Initialise curl with url of alexa.com **/


curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);    /** Tell php curl that we want the data returned to us **/


$data = curl_exec ($ch);                            /** Execution of curl and result will be stored in $data **/

echo "<pre>";
print_r($data); /**preview result**/
?>


To understand more about cURL defination visit : PHP cURL

Update Facebook status using PHP Curl

Written By Unknown on Minggu, 07 Oktober 2012 | 08.40

This tutorial explained about how to update facebook status using PHP Curl from our website directly. This status updation code will use mobile home page of facebook and updates your status.


To read more about this article Click Here

Make HTTP Requests Using Curl and Decoding JSON Responses in PHP

Written By Unknown on Senin, 20 Agustus 2012 | 09.05

PHP has Curl library that let’s you communicate with other servers. The Curl libaray is enabled by installing cUrl extension in PHP.INI. You just need to uncomment “extension=php_curl.dll” in PHP.INI file to install Curl library.
 
As a php developer, sometimes we need to get data from other server or need to make request to other server like payment gateways integration, fetching catalog etc. By using Curl library, You can make http request to a server and get the required data.  you can also decode the JSON result with json_decode() function.

To read more about this article Click Here

 
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Kumpulan Kata Broadcast Blackberry - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger