Click here to Skip to main content
15,844,387 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Based on Javascript Pin
Shog912-Mar-07 5:57
sitebuilderShog912-Mar-07 5:57 
AnswerRe: Based on Javascript Pin
Dmitry Khudorozhkov7-Mar-07 10:05
Dmitry Khudorozhkov7-Mar-07 10:05 
QuestionOpen a file from server Pin
hiral_shah6-Mar-07 1:44
hiral_shah6-Mar-07 1:44 
AnswerRe: Open a file from server Pin
Bradml6-Mar-07 2:28
Bradml6-Mar-07 2:28 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 2:36
hiral_shah6-Mar-07 2:36 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 2:49
Bradml6-Mar-07 2:49 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 2:56
hiral_shah6-Mar-07 2:56 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 14:29
Bradml6-Mar-07 14:29 
Then you are going to need the "Content-type: [content type]" header. You can get the value when it is first uploaded:

$fileType = $_FILES['NAME']['type'];

//This is an example of using this value.

str_replace("\n", "", $fileType); //Security
str_replace("\r", "", $fileType); //Security

header("Content-type: {$fileType}"); //Send Header

echo $File; //Echo the file down. 







Brad
Australian

- Captain See Sharp on "Religion"

any half intelligent person can come to the conclusion that pink unicorns do not exist.

GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 18:47
hiral_shah6-Mar-07 18:47 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 18:59
Bradml6-Mar-07 18:59 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 19:09
hiral_shah6-Mar-07 19:09 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 19:13
Bradml6-Mar-07 19:13 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 19:18
hiral_shah6-Mar-07 19:18 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 19:31
hiral_shah6-Mar-07 19:31 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 19:34
Bradml6-Mar-07 19:34 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 19:42
hiral_shah6-Mar-07 19:42 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 20:00
Bradml6-Mar-07 20:00 
GeneralRe: Open a file from server [modified] Pin
hiral_shah6-Mar-07 20:23
hiral_shah6-Mar-07 20:23 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 20:50
Bradml6-Mar-07 20:50 
GeneralRe: Open a file from server Pin
hiral_shah6-Mar-07 20:58
hiral_shah6-Mar-07 20:58 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 21:14
Bradml6-Mar-07 21:14 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 21:46
Bradml6-Mar-07 21:46 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 21:46
Bradml6-Mar-07 21:46 
GeneralRe: Open a file from server [modified] Pin
hiral_shah6-Mar-07 22:27
hiral_shah6-Mar-07 22:27 
GeneralRe: Open a file from server Pin
Bradml6-Mar-07 22:56
Bradml6-Mar-07 22:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.