PHP WebSocket2 Library
PHP5 Library for browsing web
HttpContentAttachment Class Reference

HTTP content attachment class. More...

Inheritance diagram for HttpContentAttachment:
HttpAttachment

Public Member Functions

 __construct ($filename, $contents)
 Constructor. More...
 
 writeTo (HttpSocket $socket)
 
 getSize ()
 
- Public Member Functions inherited from HttpAttachment
 __construct ($filename)
 Constructor. More...
 
 setFilename ($filename)
 Sets attachment file name. More...
 
 setContentType ($content_type)
 Sets attachment content-type. More...
 
 getFilename ()
 Returns attachment file name. More...
 
 getContentType ()
 Returns attachment content-type. More...
 
 writeTo (HttpSocket $socket)
 Writes raw attachment data to HttpSocket $socket. More...
 
 getSize ()
 Returns attachment size in bytes. More...
 

Detailed Description

HTTP content attachment class.

Examples:
http_file_upload.php.

Constructor & Destructor Documentation

__construct (   $filename,
  $contents 
)

Constructor.

Parameters
string$filenameAttachment file name (this will be sent over HTTP)
string$contentsAttachment contents

The documentation for this class was generated from the following file: