some downloads freeze

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: some downloads freeze

Post by John Cartwright »

I'm not sure if this will help the issue at all, but you probably want this line:

Code: Select all

header("Content-disposition: attachment; filename=\"$showName\"");
to be:

Code: Select all

header("Content-disposition: attachment; filename=". basename($showName));
Post Reply