Re: output to temp.htm file?

From: Date: Sun, 25 Aug 2002 00:19:50 +0000
Subject: Re: output to temp.htm file?
Groups: php.general 
Request: Send a blank email to php-general+get-113997@lists.php.net to get a copy of this message
>I have the usual/unusual situation in which one of my users is using an >exceptionally old version of aol's browser. The browser dices up all my >charts and won't display php/gd generated graphs. What I'd like to do is >display the page as normal, but also have php generate and store a >temporary file with the same information. My lol aol user can then click >on a link button and have the stored page displayed. Can this be done? It would be *infinitely* easier to have the same content displayed on a different page without making the temp.htm file... If there is simply no way to do that, perhaps you can use their User_agent to detect AOL *before* you display the HTML, and serve up the different HTML to them in the first place. Messing with a temp.htm file is your last resort. In fact, it would involve either *really* bad Security flaws or a ton of work... You'll either need a directory in your web-tree which is world-writable (BAD SECURITY) or you'll need to store the actual HTML in some other file outside the web-tree that is world-writable (NOT REALLY GOOD SECURITY EITHER) and then have the temp.htm file in your web-tree suck in that content, but that's till a real big hole that somebody could use to insert whatever they want into your web output for that AOL user. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#113997) next »