downloading files

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

Post Reply
shan123
Forum Newbie
Posts: 9
Joined: Tue Oct 21, 2003 11:04 pm

downloading files

Post by shan123 »

I'm downloading a file on server thro' PHP.
I have to open this file directly in the browser instead of opening a download dialog.
Can anyone help me urgently?

Thanks in advance...

Shantanu
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

whats the file type?
shan123
Forum Newbie
Posts: 9
Joined: Tue Oct 21, 2003 11:04 pm

file downloads

Post by shan123 »

oh sorry about that , the file type to be opened in the browser will be
text or gif/jpeg
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Try [php_man]fopen[/php_man]().
Post Reply