set name for generated page
Posted: Fri Mar 24, 2006 12:25 am
I have a php page which generate a php file that the user can save on his hard drive.
I used
to set the content type and its fine.
Now I would like to set the default name proposed by the browser when saving the file.
Without doing anything it is the name of my script, but I would like to change it.
Anyone know how to do this ?
Many thanks,
Sebastien
I used
Code: Select all
header('Content-Type: application/x-httpd-php');Now I would like to set the default name proposed by the browser when saving the file.
Without doing anything it is the name of my script, but I would like to change it.
Anyone know how to do this ?
Many thanks,
Sebastien