Re: open/save dialog on page load

From: Date: Mon, 10 Jul 2000 16:22:51 +0000
Subject: Re: open/save dialog on page load
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-5751@lists.php.net to get a copy of this message
Yep, I'm running into the same wall. I think it might have to be taken care of with some server settings. Maybe define another file type like phpf or or something that brings up a save dialog box and saves the page source. Or something... :) Thanks for the input. Ryan On Fri, Jul 07, 2000 at 01:54:02PM -0700, Ed Vul wrote: > Nope :) > you could tell them to right click on a link and then click save... but > users tend to be stupid and would screw that up. :) > you could also pop up another php window (getting back on topic here) and > have it read the source file and spit the code out in <pre> tags </pre> but > that isnt what you asked for... it would just show them the code. > > Sorry, I tried... :) > > Ed > > > "Ryan Adams" <radams@fcs.uga.edu> wrote in message > news:20000707150115.B27955@spock.fcs.uga.edu... > > Hehehe... > > > > Not at all - great suggestion. Unfortunately, I need it to save the source > of the > > page that's popping up. Maybe trick it into thinking the page is of > another type, > > without redirecting to another page. > > > > Any ideas? > > > > Ryan > > > > > > > > On Fri, Jul 07, 2000 at 10:58:46AM -0700, Ed Vul wrote: > > > Uhm, I dont know, but you could do it with javascript and get the same > > > result... > > > <body onLoad="top.location='saveme.zip';"> > > > If you make that your body tag, then it will popup a window to save/open > > > 'saveme.zip' when the page loads... > > > but you probably already know this and I'm making an ass of myself. > > > > > > Ed > > > > > > "Ryan Adams" <radams@fcs.uga.edu> wrote in message > > > news:20000707133812.A27955@spock.fcs.uga.edu... > > > > Hi all, > > > > > > > > How would I cause a php page to bring up the 'open this file from > current > > > location/save file to disk' > > > > when a page loads? Like what happens when you click on a zip file or > exe > > > or something. I'm guessing > > > > something with header() maybe? > > > > > > > > Thanks, > > > > Ryan > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > > For additional commands, e-mail: php-general-help@lists.php.net > > > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > ---end quoted text--- > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ---end quoted text---

« previous php.general (#5751) next »