View Single Post
Old 01-26-2007, 02:08 AM  
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by mlove View Post
according to php.net/header the correct syntax is


PHP Code:
header('Content-Disposition: attachment; filename="$filename"'); 
come on, that can't be correct... $filename won't work if it's inside single quotes...

you need this:
header("Content-Disposition: attachment; filename=\"$filename\"");
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

Last edited by woj; 01-26-2007 at 02:10 AM..
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote