PHP Classes

File: filehandler.php

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