Jump to content

iframe and php variable issue


smarthouseguy

Recommended Posts

ok.. so I have built a template for my subsite users with some news and weather feeds etc.... everything is variables contolled by a single variable file per user and seems to work great, but I am running into trouble when i want my content to refresh and would like the iframe to display the page which is set to auto refresh every 5 mins..... I was hoping to use iframes and have them autoscroll as opposed to using just a plain ole table so when my content refreshes only the iframe changes  and the main page stays the same. but it seems that iframe is having trouble with the path...

 

<iframe src="../../../content/rss/weather/shg_weather_tmp.php">This page is written with Frames, but your browser is unable to display Frames.</iframe>

 

on the page i actually call the weather page like this:

<? include $weather ?>

 

the weather variable is:

$weather="../../../content/rss/weather/shg_weather_tmp.php";

 

but it seems no matter how i try to call the file with the iframe it fails to find the file...

 

any ideas??

 

Kind Regards,

smarthouseguy

Link to comment
https://forums.phpfreaks.com/topic/37108-iframe-and-php-variable-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.