PHP download script error.
2 posts Page 1 of 1
PHP download script error.I have been trying to create a download script this is a simple version of what I have but in both versions I get the same error
In my php file I have :
header('Content-disposition: attachment; filename=card.png');
And then the clickable download link: <a href="FileDownload.php">Download</a>
Every thing seems to work and the file downloads but I can not view it
I get the following,when opening the picture Windows Photo Viewer can't open this picture because either Photo viewer doesn't support this file format or you don't have the latest version.
Note im using windows.
Can anyone help??
Thanks in advance
- Posts: 1
- Joined: Mon Apr 23, 2012 9:32 pm
Re: PHP download script error.
Page 1 of 1