PHP Classes

File: test.php

Recommend this page to a friend!
  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: 13 years ago
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;
?>