Dynamically Generated URL as Include?
Posted: Fri May 14, 2010 11:53 am
Is this possible? I am playing around with one of the pages on my site but can't get a dynamic url to work as an a php include
My question is why would <?php include("lines.php"); ?> work fine but not <?php include("lines.php?sport=nfl&period=0"); ?> IF www.website.com/lines.php?sport=nfl&period=0 is a valid url. Is it just because the url is dynamic?
This is the error I am getting
Warning: main(lines.php?sport=nfl&period=0) [function.main]: failed to open stream: No such file or directory
If I can't get this to work my alternative is using an iframe instead which I want to avoid because there will be 3 different iframes on the page and because the url is dynamic the size is always changing the iframe will have to use a scroll bar.
Anyone have a better way to do this?
My question is why would <?php include("lines.php"); ?> work fine but not <?php include("lines.php?sport=nfl&period=0"); ?> IF www.website.com/lines.php?sport=nfl&period=0 is a valid url. Is it just because the url is dynamic?
This is the error I am getting
Warning: main(lines.php?sport=nfl&period=0) [function.main]: failed to open stream: No such file or directory
If I can't get this to work my alternative is using an iframe instead which I want to avoid because there will be 3 different iframes on the page and because the url is dynamic the size is always changing the iframe will have to use a scroll bar.
Anyone have a better way to do this?