RE: server-side redirect thingy?
by "Charlton, Mark" <Mark.Charlton(at)saint-gobain.com>
|
| Date: |
Mon, 12 Mar 2001 13:04:04 -0500 |
| To: |
"'Peter Benoit'" <pbenoit(at)triton-network.com>, Hwg-Techniques <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
The question with these options is how can you specify what file you would
want or would this only work for one set image.
I have never used php, so probably a very basic question. Is it possible to
use a global function as part of a page? rather than an included additional
page. something that is central that you can pass parameters to from many
pages? Or can an included page source it's info/parameters from the calling
page?
Or is that what you mean that putting a <img src="header.pl"> is not the way
to do it in that the idea doesn't work?
Thanks
Mark
-----Original Message-----
From: Peter Benoit [mailto:pbenoit(at)triton-network.com]
Sent: Monday, March 12, 2001 11:18 AM
To: 'tim booker'; Peter Schonefeld; Hwg-Techniques
Subject: RE: server-side redirect thingy?
Well that's not really the way it's done.
You could do something like:
<img src="<? if(ie){ $mypng; }else{ $mygif; } ?>">
or use it as an included php
<img src="<? include ("myfile.php"); ?>">
then do your checking in your included file. It's been ages since I've used
PHP, so this may not be entirely correct.
You can't call a script like what you've shown since the page has been
processed already, it must be done while it's processing.
-----Original Message-----
From: tim booker [mailto:timbooker(at)btinternet.com]
Sent: Monday, March 12, 2001 9:27 AM
To: Peter Schonefeld; Hwg-Techniques
Subject: Re: server-side redirect thingy?
Thanks for your reply,
Of course I could use this method, I could even do this client-side using
JS. My question is, can it be done so that you refer to a script as the src
of the image, and the script returns the correct image?
So, if I put <img src="header.pl">, it would display header.png or
header.gif, depending upon the browser.
I want something that would be nicely invisible, that would not require me
to chop up every page in a scripting language.
Tim
www.timbooker.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.