Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of George Imerlishvili  >  curla  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: How to use class
Class: curla
Send HTTP requests in a Curl compatible way
Author: By
Last change:
Date: 2011-10-01 08:43
Size: 248 bytes
 

Contents

Class file image Download
<?
require_once "curla.class.php";
$ch=curla_init();
curla_setopt($ch,CURLOPT_TIMEOUT,30);
curla_setopt($ch,CURLOPT_URL,"http://google.com/");
curla_setopt($ch,CURLOPT_POSTFIELDS,"test=dsfsdf&xaxa=xoxo");
$res=curla_exec($ch);
echo 
$res;
?>