Hi,
i don't think you can do this all on Server-side. I once made things like that 
work with usual frames. I used Javascript in each page of the frameset to 
find out if the "parent" exists - and if not, redirect to the frameset which 
itself was a PHP script whom i told to load the current page in correct 
frames. I don't know if that's also posibile with iframes.

Anyway, you need to do two steps:

  1. You must be able to view the outer page with a parameter, which tells it
     what Site is to be viewed inside the iframe.

  2. Some sort of JavaScript wich redirects to the outer page. Tha JavaScript
     must live inside each site that might show up inside the iframe.

Regards
Sascha

Am Sonntag, 6. Oktober 2002 18:29 schrieb Stephen:
> Hello,
>
> I was wondering if what I want to do is possible. I have a website that
> uses iframes and sometimes the search engines pick up the file that's
> displayed in the iframe. That file jsut plain looks really bad but in the
> site itself and displayed in the iframe it looks a whole lot better.
>
> What I want to be able to do is this. If the file is being displayed just
> plain, not in the iframe, it forwards to the main site and then displays
> the file in the iframe. But then, if the file is already being displayed in
> the iframe, it doesn't do anything. Can this be done and how?
>
> Thanks,
> Stephen Craton


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to