Hi, I am trying to set up a php include into my page. I have directions but I know very little on php. The directions say to insert this code into my page, not this code but it's an example. <?include("http://xxxxxx.xxx/MyFeed.aspx?".$_SERVER["QUERY_STRING"])?> Code (markup): Then the directions say Use the following url to call the page where you insert the code : yourfilename.php?feedID=698 I have no idea what to do. Anyone know how to do this that could give me a hand? Thanks
I'm not sure about that whole block of code, I'm assuming you know more than I do. But the include tags I'm using for my page do not have the whole query string. All mine do is include a section such as navigation on my page, and to execute them all I need is: <?php include_once('Navigation/left.php'); ?> If its something more complicated try elaborating a bit more otherwise this may be all you actually need. I use include_once because its safer for if your dealing with variables and what not. But you won't lose any of the benefits from a normal include statement.
You're using inappropriate quotes. Assuming this is actually the code you want to use, it should look like this: <?php include('http://xxxxxx.xxx/MyFeed.aspx?'.$_SERVER["QUERY_STRING"])?> PHP: Edit: oops
Thanks guy, but it's still not working. I don't know what it is. That is all the directions I got. I'm on a .php page so that's not the problem.
I get this when I put the include code in my page. "Please remember to include your feedId in the querystring!" The first post is the directions, I just put in the include it says. I'm not too sure what "Use the following url to call the page where you insert the code : yourfilename.php?feedID=698" That is what I'm stuck on.
It should work as you have it as long as $_SERVER["QUERY_STRING"] contains literally "feedID=698" which it probably doesn't. The URL you call in your include needs to look like this: 'http://xxxxxx.xxx/MyFeed.aspx?feedID=6654'
Is "feedID=698" going to change? The only reason why you'd need to include a php variable is if its going to change.
Thanks Guys, I got it to work. Stupid me was forgetting to call the feedID in the URL, I was just calling my filename without the feedID in it. That's the next thing I have to figure out, how to get it to work without the feedID in the URL.
Does anyone know how I could strip out the feedID=698 in the url and just have my filename? I saw someone else with the same feed do this but I have no clue
I have a feed setup from another site with a php include. I have to call it by the url www.xxxx.com/filename.php?feedid=698 for it to work. If I just put in the filename without the ?feedid=698, it doesn't work right. I wanted to know how I could call the page with just the filename without the ?feedid=698 in the url. Here is how the php include is set up now. <?include("http://feed.xxxxxx.com/MyFeed.aspx?".$_SERVER["QUERY_STRING"])?> Code (markup): and I call the page by putting in www.myurl.com/filename.php?feedid=698 I wanted to know How I could just call the page by just www.myurl/filename.php I know there is a way because someone on another website has the exact same feed and just calls the filename of thier site and no feedid in the url?
Yeah, I'm basically looking for a strip out rather than a Mod Rewrite. I guess I mind as well do a mod rewrite on it. Thanks