RE: [PHP-DB] Open file dialog box to save static file
No that wouldn't work because the formatted page looks quite different from the page she uses for admin. I've been looking for some samples for fopen() coding, cause I'm relatively new to this PHP game, I think I've found an example that might be useful though so I'll play around a bit and see what I can learn. Thanks Peter --- Hi Just occurred to me - can you just use the browser to 'Save page as' and change the file name to page.htm instead of page.php? Peter --- Excellence in internet and open source software --- Sunmaia www.sunmaia.net [EMAIL PROTECTED] tel. 0121-242-1473 --- > -Original Message- > From: Howard Picken [mailto:[EMAIL PROTECTED]] > Sent: 12 May 2002 10:05 > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Open file dialog box to save static file > > > I'm looking for a way to do the following > > I've created a php/mysql site for my wife for various > database lists she has. > > She uses PHP locally on our on web server to add/manage > entries but a lot of the pages need to be static and uploaded > to a specific site (no PHP/MySQL). > > So I've give her a link that calls another php page to "generate" > and view the static page in the format she requires. She then has to > view the source of that page hilight and copy it over the top > of the old page on her PC, then upload it to the site. > > Now... what I would to be able to do is instead of her having to > view source etc. I would like to be able to call up a Windows > file save dialog box (maybe even going staright to the correct folder) > so that the file can just be saved. > > I can't find anything in the PHP manual about this. Anyone done it > or have any ideas? > > Howard > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Open file dialog box to save static file
Hi you can use php to write the html to a file, rather than having to do it all manually. Look at fopen() Not sure if this is exactly what's needed, but it might be. HTH Peter --- Excellence in internet and open source software --- Sunmaia www.sunmaia.net [EMAIL PROTECTED] tel. 0121-242-1473 --- > -Original Message- > From: Howard Picken [mailto:[EMAIL PROTECTED]] > Sent: 12 May 2002 10:05 > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Open file dialog box to save static file > > > I'm looking for a way to do the following > > I've created a php/mysql site for my wife for various > database lists she has. > > She uses PHP locally on our on web server to add/manage > entries but a lot of the pages need to be static and uploaded > to a specific site (no PHP/MySQL). > > So I've give her a link that calls another php page to "generate" > and view the static page in the format she requires. She then has to > view the source of that page hilight and copy it over the top > of the old page on her PC, then upload it to the site. > > Now... what I would to be able to do is instead of her having to > view source etc. I would like to be able to call up a Windows > file save dialog box (maybe even going staright to the correct folder) > so that the file can just be saved. > > I can't find anything in the PHP manual about this. Anyone done it > or have any ideas? > > Howard > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Open file dialog box to save static file
I'm looking for a way to do the following I've created a php/mysql site for my wife for various database lists she has. She uses PHP locally on our on web server to add/manage entries but a lot of the pages need to be static and uploaded to a specific site (no PHP/MySQL). So I've give her a link that calls another php page to "generate" and view the static page in the format she requires. She then has to view the source of that page hilight and copy it over the top of the old page on her PC, then upload it to the site. Now... what I would to be able to do is instead of her having to view source etc. I would like to be able to call up a Windows file save dialog box (maybe even going staright to the correct folder) so that the file can just be saved. I can't find anything in the PHP manual about this. Anyone done it or have any ideas? Howard -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php