Welcome to WebmasterWorld Guest from 54.226.194.180

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

How to include files based on urls

Seeking help on How to include files based on urls

     

shiv22

3:39 pm on Oct 1, 2009 (gmt 0)

5+ Year Member



I have an article site with urls in 4 different groups like:

[domain.com...]

[domain.com...]

[domain.com...]

[domain.com...]

I'd like to add category specific content to the categories, distinct common elements to all article pages and similarly to page and pages group of pages.

I am a beginner but can manage to do simple php tasks.

Can someone help me with how to go about this?

jd01

5:14 am on Oct 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi shiv22,

Welcome to WebmasterWorld!

Quite a bit of what you're asking about depends on how your system is set up to do things... You'll probably find more help if you try some code of your own and post an example of it, because some of the people who post here code professionally and would rather 'educate' here than 'work for'.

I'm actually not sure what the answer is, because I don't know how your system works and what you've tried, but I can tell you $_SERVER['REQUEST_URI'], $_SERVER['QUERY_STRING'] and either strstr(), strpos() or preg_match() are probably going to be important...

Take a shot at what you think should work, then if it doesn't, post the relevant code, what doesn't work correctly as well as why it doesn't work and someone will probably help you work through it or at least point you in a direction.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month