Hyperlink to page with include from php script
Posted: Tue Apr 01, 2008 2:34 pm
I have a news page that dynamically updates from an RSS feed using php.
I want each blog entry to generate on a template page if I click on a link from the entry's title.
At the moment it links to a page outside of my website - so I want a template that will <? include the external html page*.
However, the link format from the new page is wrong - so I've written a php script that converts the incorrect link to a correct one (looked over code for the RSS php and I'm pretty sure it's a Google thing and not something I can fix through that script).
So, what I need is:
A link that will send a static value (generated by the RSS php) to the conversion script and then bring up an html page with the result of the conversion script included in it.
That probably makes very little sense.
*It's not actually an html page, it's the link to the RSS entry.
I will think about how to actually display the RSS later!
And I have tried adding the conversion to the RSS php but failed with that.
I want each blog entry to generate on a template page if I click on a link from the entry's title.
At the moment it links to a page outside of my website - so I want a template that will <? include the external html page*.
However, the link format from the new page is wrong - so I've written a php script that converts the incorrect link to a correct one (looked over code for the RSS php and I'm pretty sure it's a Google thing and not something I can fix through that script).
So, what I need is:
A link that will send a static value (generated by the RSS php) to the conversion script and then bring up an html page with the result of the conversion script included in it.
That probably makes very little sense.
*It's not actually an html page, it's the link to the RSS entry.
I will think about how to actually display the RSS later!
And I have tried adding the conversion to the RSS php but failed with that.