[Solar-talk] Embeded php files

Sean Montague scene at themountainscene.com
Fri Apr 4 16:01:31 CDT 2008


I have a situation that I hope can be solved. I've spent the last three 
days moving an svg based app I'm writing into SolarPHP, which has made 
life easier. Problem is, due to something funky IE8 beta did to my 
computer, my IE7 cannot view php generated svg files. No explanation 
why, just that I probably need to reformat my disk and do a clean 
install, which I don't have time for right now. So I finally got around 
to testing from my laptop in IE7. One thing I did not consider before 
moving all my stuff to Solar is that in IE I must use the adobe svg 
viewer, which requires that I embed the svg file as <embed id="svg" 
width="100%" height="100%" src="_content.php" type="image/svg+xml" />, 
where _content.php is the main svg doc. My _index.php looks like:

<?php if($browser == 'moz'):?>
    <?include $this->template('_content.php');?>
<?else:?>
    <embed id="svg" width="100%" height="100%" src="_content.php" 
type="image/svg+xml" />
<?endif;?>

They both reference the same file, but $this loses context in the 
embeded file. Ultimately, we'll be using activeX in the app, which means 
IE will be the only option, meaning I must be able to embed the file. Is 
there a way to gain access to all the Solar variables? Thanks!

Sean


More information about the Solar-talk mailing list