File: index.php

Recommend this page to a friend!
  Classes of Pravin Sonawane  >  PHP CURL Upload File  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index page
Class: PHP CURL Upload File
Send an uploaded file to a remote server with CURL
Author: By
Last change: Added class
Date: 4 years ago
Size: 1,052 bytes


Class file image Download
$msg = '';
    if (isset(
$up = new curlupload();
$r = $up->request($_FILES,$_FILES['file']['name']);
        if (
$r == true)
$msg = "File Uploaded Sucessesfully...";
$msg = $r;
<title>File Upload Using PHP and cURL -</title>
<style type="text/css">
    font-family:Verdana, Geneva, sans-serif;
<font style="color: red;"><?php echo ucfirst($msg);?></font><br>
<table border="1" cellspacing="0" cellpadding="3" style="border-collapse:collapse;" bordercolor="#CCCCCC">
  <form action="" method="post" name="frmUpload" enctype="multipart/form-data">
      <td align="center">:</td>
      <td><input name="file" type="file" id="file"/></td>
      <td align="center">&nbsp;</td>
      <td><input name="btnUpload" type="submit" value="Upload" /></td>

For more information send a message to info at phpclasses dot org.