|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Blobbing Data With PHP and mySQL: Download tif file
I put some files (including .html, .doc, .jpg, .tif ) into mySQL using the script from "Blobbing Data With PHP and mySQL". All can be viewed in my browser except .tif (says abc.tif).
A pop-up windows appears and says 'You are downloading the file: downloadfile.php from URL Would you like to open the file or save it in your computer?' After saving downloadfile.php, i rename the file to downloadfile.tif. I can see it as same as my abc.tif. How can i change the PHP code so that 1. I can see the real extension (i.e. .tif) 2. my browser realize the format of my file (i have tif browser plug-in so that my browser can recognize it immediately) |
|
#2
|
|||
|
|||
|
try echoing the header type. and check the output, it should be something like image/tif.
|
|
#3
|
|||
|
|||
|
I try to echoing the header type and find that the .tif file type is for .tif: application/octet-stream (not image/tif). How can i let the grabfile.php know the file type should be image/tif automatically?
Last edited by felix : August 16th, 2002 at 11:46 PM. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Blobbing Data With PHP and mySQL: Download tif file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|