Create A HTML File
Moderator: General Moderators
Create A HTML File
I want to have PHP create a HTML file temporarily for the user to view and once the user closes the page it is deleted.
Download Option
Because I want to provide the user with an option to download the output they are looking at.
Dynamic Files
The output on this file is going to be dynamic it is going to change depending on their ticket information.
I dont want to have 100,00 HTML files on the server, I just want a temporary HTML file that fills in their ticket information for them to download.
I dont want to have 100,00 HTML files on the server, I just want a temporary HTML file that fills in their ticket information for them to download.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you never have to save the html to a file. You regenerate the html on the fly and tell the browser to download it. It's really quite simple.
Look through the header() function, which has some examples of making downloads.
Look through the header() function, which has some examples of making downloads.
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York