stlntdot Posted May 8, 2008 Share Posted May 8, 2008 Ok this is the best way to explain this Folder: Blog >index.php has this chunk of code: <RecentEntry> -<%RecentEntryTitle%><br> </RecentEntry> Now how can I link that on say index.html in my root folder? (to make it display the listings) Quote Link to comment https://forums.phpfreaks.com/topic/104755-variable-help/ Share on other sites More sharing options...
wildteen88 Posted May 8, 2008 Share Posted May 8, 2008 Huh! Your question needs to be a bit more meaningful. I don't understand you at the moment. Quote Link to comment https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536236 Share on other sites More sharing options...
stlntdot Posted May 8, 2008 Author Share Posted May 8, 2008 Ok I have a blog installed on my server in a folder called "Blog" and part of the template that I use there is a part that lists out the last 10 things I blogged (titles) to list them on the template (that is inside the blog folder) I use this chunk of code: <RecentEntry> -<%RecentEntryTitle%> </RecentEntry> Now, I would like to list those same titles automatically on my index.html page, which is located outside of the blog folder. Quote Link to comment https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536245 Share on other sites More sharing options...
BlueSkyIS Posted May 8, 2008 Share Posted May 8, 2008 what is this???? <RecentEntry> -<%RecentEntryTitle%> </RecentEntry> it's not PHP as far as I can see. Quote Link to comment https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536250 Share on other sites More sharing options...
wildteen88 Posted May 8, 2008 Share Posted May 8, 2008 Your blog must have its own template system which parses the code you have posted with the generated top 10 list. In order for it to show up in your index.html file you'll first have to rename it to index.php then include the relevant code from your blog for parsing the code to get your top 10 list. Quote Link to comment https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536252 Share on other sites More sharing options...
stlntdot Posted May 8, 2008 Author Share Posted May 8, 2008 Thanks Quote Link to comment https://forums.phpfreaks.com/topic/104755-variable-help/#findComment-536256 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.