PHP Classes

File: upload.php

Recommend this page to a friend!
  Classes of Evert Ulises German Soto   cURL Easy and Fast   upload.php   Download  
File: upload.php
Role: Example script
Content type: text/plain
Description: upload.php
Class: cURL Easy and Fast
Send HTTP request to remote servers using Curl
Author: By
Last change: the post fields are changed
Date: 10 years ago
Size: 652 bytes


Class file image Download

$fTmpName = "";
$tmp_name = "";

// Make sure a file has been selected for upload
$fTmpName = $_FILES['file_any']['tmp_name'];
$tmp_name = "@".$fTmpName;
"No such file selected.");

$options = array(
"url" => "http://localhost/wArLeY_cURL/process_file.php",
"data" => "plain",
"post" => "1",
"return_transfer" => "1",
"post_fields" => "nombre=".$_POST["txt_name"]."&archivo=".$tmp_name),
"redirect" => "0"

$obj = new wArLeY_cURL($options);
$resp = $obj->Execute();
//echo $obj->getError();

echo $resp;