MySQL Forums
Forum List  »  PHP

Re: Download in PHP
Posted by: Peter Brawley
Date: April 07, 2006 09:12AM

Doesn't list() assign items right to left?

Try specifying a header, eg

$path = "<whatever>";
$filetype = mime_content_type( $path . $file );
header( "Content-Disposition: attachment: filename=\"file\"" );
header( "Content-type: " . $filetype );
readfile( $path . $file );

Options: ReplyQuote


Subject
Written By
Posted
April 07, 2006 02:46AM
Re: Download in PHP
April 07, 2006 09:12AM
April 08, 2006 02:27AM
April 08, 2006 08:54AM
April 09, 2006 07:56AM
April 09, 2006 01:02PM
April 11, 2006 09:05AM
April 11, 2006 09:16AM
April 22, 2006 08:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.