Login   Register  
PHP Classes
elePHPant
Icontem

File: filehandler.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of PLSCIS PLP  >  Simple PHP Web Chat  >  filehandler.php  >  Download  
File: filehandler.php
Role: Application script
Content type: text/plain
Description: normal request handler file for file uploads
Class: Simple PHP Web Chat
Chat system with Websockets or AJAX as fallback
Author: By
Last change: changed role and description
Date: 2013-12-08 13:34
Size: 306 bytes
 

Contents

Class file image Download
<?php
include_once('common.php');
include_once(
$site_path.'classes'.DIRECTORY_SEPARATOR.'class.Reply.php');
$rpl_obj = new Reply();
$return_val $rpl_obj->fileCopy($_FILES['file']['name'], $_FILES['file']['tmp_name'], $_FILES['file']['type']);
echo 
json_encode(array('txt' => $return_val)); exit;
?>