smarthouseguy Posted February 5, 2007 Share Posted February 5, 2007 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 More sharing options...
smarthouseguy Posted February 6, 2007 Author Share Posted February 6, 2007 it seems the first set of code is missing due to an ad.. let me post it again... <iframe src="../../../content/rss/weather/shg_weather_tmp.php">This page is written with Frames, but your browser is unable to display Frames.</iframe> Link to comment https://forums.phpfreaks.com/topic/37108-iframe-and-php-variable-issue/#findComment-177851 Share on other sites More sharing options...
BillyBoB Posted February 6, 2007 Share Posted February 6, 2007 try <?php include("http://yoursite.com/content/rss/weather/shg_weather_tmp.php"); ?> somthing along those lines becuase i think that all the ../ are messing up the server Link to comment https://forums.phpfreaks.com/topic/37108-iframe-and-php-variable-issue/#findComment-177859 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.