Comunitatea PHP Romania
 

 
HTTP_Download::setContentType

HTTP_Download::setContentType()

HTTP_Download::setContentType() --  Set content type

Description

Set a reasonable content type for the download.

Examples:

  • application/pdf

  • application/zip

  • text/css

Returns PEAR_Error if $content_type doesn't seem to be valid.

Parameter

  • string [$content_type = 'application/x-octetstream'] - a reasonable content type

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
mihaitha mihaitha
Sibiu
Mascka Mascka
Braila
gabysolomon gabysolomon
Bacau
whooper whooper
Toronto ON
raul_ raul_
dechim dechim
Drobeta Turnu Severin
Amenthes Amenthes

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2009 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink iKobo | Debt Consolidation | Xecuter 3 Mod Chip | The Latest Gadgets | Discount Magazine Subscriptions
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis