|
-
Mar 8th, 2005, 10:33 AM
#1
Thread Starter
Junior Member
Can PHP return a file?
Hi guys,
If my user's browser submits a form with certain parameters that are used to perform a searching in my database. After searching, is it possible to use PHP to return a file for example car.gif to the user's browser. I meant just the car.gif without any using HTML or XHTML or PHP.
Your help is very much appreciated. Thank you
-
Mar 8th, 2005, 11:54 AM
#2
<?="Moderator"?>
Re: Can PHP return a file?
You need to use the header() function to change the content tpye of the page.
Take a look at it goes into detail about creating downloads,
http://www.vbforums.com/showthread.p...=File+Download
-
Mar 9th, 2005, 10:22 AM
#3
Thread Starter
Junior Member
Re: Can PHP return a file?
Hi John,
Thank again. Header really solves my problem. Do you have a complete list of headers with their explanations?
-
Mar 9th, 2005, 11:56 AM
#4
<?="Moderator"?>
Re: Can PHP return a file?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|